From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/etc/gmtcnv.x | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sys/etc/gmtcnv.x (limited to 'sys/etc/gmtcnv.x') 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 -- cgit