diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/etc/gmtcnv.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/etc/gmtcnv.x')
-rw-r--r-- | sys/etc/gmtcnv.x | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/etc/gmtcnv.x b/sys/etc/gmtcnv.x new file mode 100644 index 00000000..7713c9c0 --- /dev/null +++ b/sys/etc/gmtcnv.x @@ -0,0 +1,35 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# GMTCNV.X -- GMT (Greenwich mean time) to LST (local standard time, or clock +# time) conversions. +# +# gmt = lsttogmt (lst) # lst/gmt are in seconds +# lst = gmttolst (gmt) # lst/gmt are in seconds + + + +# GMTTOLST -- Convert a long integer value in GMT seconds to LST seconds. + +long procedure gmttolst (gmt) + +long gmt # GMT in seconds +int gmtco + +begin + call zgmtco (gmtco) + return (gmt - gmtco) +end + + + +# LSTTOGMT -- Convert a long integer value in LST seconds to GMT seconds. + +long procedure lsttogmt (lst) + +long lst # LST in seconds +int gmtco + +begin + call zgmtco (gmtco) + return (lst + gmtco) +end |