diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /lib/time.h | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'lib/time.h')
-rw-r--r-- | lib/time.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/time.h b/lib/time.h new file mode 100644 index 00000000..6c3dbf17 --- /dev/null +++ b/lib/time.h @@ -0,0 +1,17 @@ +# TIME.H -- Define the time value structure for brktime, cnvtime. + +define SZ_TIME 24 # size of "Dow 00:00:00 dd-Mmm-yyyy" +define SZ_DATE 12 # size of "Mmm dd hh:mm" +define LEN_TMSTRUCT 8 # length of time struct + +define TM_SEC $1[1] # seconds (0-59) +define TM_MIN $1[2] # minutes (0-59) +define TM_HOUR $1[3] # hour (0-23) +define TM_MDAY $1[4] # day of month (1-31) +define TM_MONTH $1[5] # month (1-12) +define TM_YEAR $1[6] # year, e.g. "1982" +define TM_WDAY $1[7] # day of week (Sun == 1) +define TM_YDAY $1[8] # day of year (1-365/6) + +# Conversion flags for the etc$dtm date/time conversion routines. +define TF_OLDFITS 1 # old FITS format DATE-OBS string |