datshift [<date> <days>]
where date is either Julian date (= 1000 * year + day(1...365,366)
or calendar date (= 10000 * year + 100 * month + day(1...31)
DATSHIFT program computes and displays calendar-style
date "YYYYMMDD" for an output date the specified
number of days before or after the indicated input date.
In case date is out of range, or not given
as a command line argument, DATSHIFT prompts the user for it.
Versions of the program are available for each supported architecture (workstation versions are currently in the directories /env/apps/(SunOS5 | IRIX5 | alphaOSF1)/bin; Cray versions are in /work/xcc/m3tools on sequoia) and /flyer/com/epa/coats/bin or /usr/local/edss/framework/EDSSv0.3pre/unicos9_TS/bin/OPTIMIZE on flyer.
% datshift 19930701 31
19930801
and
% datshift
Program DATSHIFT takes calendar date (in form YYYYMMDD)
and a number of days as an increment and returns the date
in Gregorian-date form "YYYYMMDD".
Usage: "datshift [<YYYYMMDD> <+/- days>]"
(if the command-line arguments are missing, prompts the
user for them)
Enter date (YYYYMMDD) or (YYYYDDD) [19950701] >>
19930701
Enter days increment [1] >>
63
19930902
To: Models-3/EDSS I/O API: The Help Pages