Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/lrpg/man_txt/hstweek.txt
Дата изменения: Fri Apr 8 22:30:22 2011
Дата индексирования: Sat Mar 1 10:39:50 2014
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п



User Commands HSTWEEK(1)



NAME
hstweek - Return the YYYY.JJJ date-form of the current HST
calendar week


SYNOPSIS:
hstweek [+|-]


INTRODUCTION:
This shell script will return the YYYY.JJJ date-form name of
the nominal 7-day cadence HST calendar (i.e., the YYYY.JJJ
date of the Monday at the start of the given increment week)
for a given week-number offset increment.

Running just the toolname shows the usage statement.

Entering a -# or [+]# as the only command line argument will
return the week name corresponding to that number of weeks
offset.

For example, if today were Tuesday, February 3, 2009, then:

unixprompt> hstweek 0 2009.033 unixprompt>
hstweek +1 2009.040 unixprompt> hstweek -2
2009.019



NOTES AND CAUTIONS:
If there is a space between the plus/minus and the number,
the tool will fail.


BUGS:
Please report to author.


REVISION HISTORY:
# 05-05-31 ij initial coding # 07-02-28 ij fix
to enable solaris and mac implementations of date. #
09-02-03 ij enable plus-sign in front of week
increment number.


CALLS USED:
tcsh shell script employing cut, echo, date, expr, and bc.
Code is bifurcated to handle different implementations of
solaris and macosx






SunOS 5.10 Last change: 31 May, 2005 1






User Commands HSTWEEK(1)



AUTHOR
ian jordan





















































SunOS 5.10 Last change: 31 May, 2005 2