Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: affirm Up: General Previous: General

Subsections



adate

AIPS++ date utility.

Synopsis

adate [-d] [-l | -u]

Description

adate reports the date in the standard AIPS++ format, viz

   Wed 1992/06/03 14:59:07 GMT

This format avoids the confusion caused by mm/dd/yy and dd/mm/yy formats, and is sortable on the second and/or third fields. Providing four digits for the year allows for dates past the year 2000. Reporting times in Greenwich Mean Time (GMT) reflects the international nature of the AIPS++ project.

Options

-d
Omit the day-of-week.

-l
Report the local time instead of GMT.

-u
Report GMT (default).

Diagnostics

Status return values
0: success
1: invalid option

Examples

The following construct is typical of that used in the AIPS++ code distribution scripts for maintaining the VERSION and LOGFILE files.

   echo "$NEWVERSN `adate` ($MODE)" | cat - LOGFILE_ > LOGFILE

See also

The unix manual page for the date(1) command on which adate is based.

Author

Original: 1992/06/03 by Mark Calabretta, ATNF.


next up previous contents index
Next: affirm Up: General Previous: General   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15