DATES can be run over the WWW using a browser, such as Netscape, or
run locally using the command-line interface (CLI). The CLI version will
accept a text file with a list of dates as input. The CLI version has
an expanded list of supported date formats, and also allows timescale
conversions (e.g. EST to GMT.)
DATES is part of the Proposal toolkit. The toolkit is distributed with
CIAO.
For details about available coordinate and time systems, please see
the prop-time and prop-coords ahelp documents.
DATES can be accessed via the URL
http://cxc.harvard.edu/toolkit/dates.jsp
Supported date formats include Calendar, Julian, Modified Julian, Day of
Year, Chandra Time. A general help file for the Proposal Planning Toolkit is available by
clicking the 'HELP' button.
To run DATES in CLI mode, type 'prop_dates' at the UNIX prompt. To see a list of
available commands, type '?', 'help', or 'h'. The command-line interface has additional supported date and time
formats. For a complete listing, type 'list/cal' (or 'l/cal') for the list of
available calendars and 'list/ts' (or 'l/ts') for available timescales.
The syntax for processing a file of coordinates is:
prop_dates commands:infile:outfile
It is also possible with the CLI to set the printing level for the
results, set the zero for a date format and to run a loop conversion.
More detail about these features can be found later in this file.
The setup prompt is where the date format is set. For example: 'from
JD to ROMAN' (or 'f JD t ROMAN') sets up DATES to convert from Julian
Day to the Roman Calendar format.
To perform individual conversions, enter conversion mode by typing
'convert' (or 'c') at the setup prompt. At the conversion prompt, enter
the date to be converted, the result will be displayed according to
the printing level selected. Type 'quit' (or 'q') to exit conversion
mode. Alternately, typing 'eval' (or 'e') at the setup prompt instead
of 'convert' will perform a conversion and return to the setup
prompt in one step. The command 'do' (or 'd') will perform loop
conversion with the syntax:
do date1;date2;step
P2 is the default for interactive mode. Each conversion outputs four lines:
a leading banner of dashes, the 'from' info (to check the program has
parsed your input correctly), the 'to' info (the result), and a
trailing banner of dashes. Each gives the calendar followed by
the value.
P1 is the default for batch mode. A single line
gives the from and to values side by side, and a header
line is issued on entry to convert mode
giving the from and to calendars.
P0 is a concise mode which gives only the output value.