[544] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

sdate

daemon@ATHENA.MIT.EDU (Daniel J. Thumim)
Wed Apr 6 22:56:11 1994

To: linux-dev@MIT.EDU
Date: Wed, 06 Apr 1994 22:55:55 -0400
From: "Daniel J. Thumim" <dthumim@MIT.EDU>

I see that /mit/sipb/linuxbin/sdate now exists.  Unfortunately, it doesn't
work.  The first problem is with time zones.  On my system, the TZ
environment variable is not set (before you flame me, read this whole
message), the timezone is set by /usr/lib/zoneinfo/localtime (and
posixrules which is a link to it).

All the runs of sdate below were run within 3 seconds of each other.
Note that I'm assuming that sdate works correctly on the DEC, flame me
now if that's not so.  Here is the output of sdate on a DECstation:

Thu Apr  7 02:43:05 1994 GMT
           02:44:08      Terrestrial Dynamical Time
Wed Apr  6 22:43:05 1994 Local Civil Time
           21:58:42      Local Mean Time
The Moon is 3.7 days past Last Quarter
Julian Day  2449449.613
           14:43:41      Greenwich Mean Sidereal Time
           09:59:17      Local Sidereal Time
           20:56:23      L.H.A. of Sun
                  6.701  Degrees Declination
Azimuth         322.242  Degrees
Elevation       -33.586  Degrees
Sunrise    06:19         Tomorrow   06:17  
Sunset     19:16         Tomorrow   19:17  
Moonrise   03:58         Tomorrow   04:26  
Moonset    15:22         Tomorrow   16:21  

And on linux:

Wed Apr  6 21:43:08 1994 GMT
           21:44:11      Terrestrial Dynamical Time
Wed Apr  6 22:43:08 1994 Local Civil Time
           16:58:45      Local Mean Time
The Moon is 3.7 days past Last Quarter
Julian Day  2449449.613
           09:43:44      Greenwich Mean Sidereal Time
           04:59:20      Local Sidereal Time
           15:56:26      L.H.A. of Sun
                  6.701  Degrees Declination
Azimuth         322.255  Degrees
Elevation       -33.591  Degrees
Sunrise    06:17         Tomorrow   06:15  
Sunset     19:17         Tomorrow   19:18  
Moonrise   04:26         Tomorrow   04:52  
Moonset    16:21         Tomorrow   17:20  

Here you can see that GMT is not calculated correctly.  The times listed
for sun/moon rise/set are all tomorrow's times.  So maybe fixing the GMT
bug will fix that one.  But maybe not... here is what happens on linux
with (export TZ=EDT;/mit/sipb/linuxbin/sdate):

Thu Apr  7 02:43:08 1994 GMT
           02:44:11      Terrestrial Dynamical Time
Thu Apr  7 02:43:08 1994 Local Civil Time
           21:58:45      Local Mean Time
The Moon is 3.7 days past Last Quarter
Julian Day  2449449.613
           15:43:44      Greenwich Mean Sidereal Time
           10:59:20      Local Sidereal Time
           21:56:26      L.H.A. of Sun
                  6.701  Degrees Declination
Azimuth         322.255  Degrees
Elevation       -33.591  Degrees
Sunrise    10:17         Tomorrow   10:15  
Sunset     23:17         Tomorrow   23:18  
Moonrise   08:26         Tomorrow   08:52  
Moonset    20:21         Tomorrow   21:20  

Now it gets GMT right, but local civil time wrong, and the sun/moon rise/set
times are all screwed up.  Anyway, that's what I've found, I hope it's
enough info for someone to fix it.  (By the way, who compiled it?)  Thanks,

					-- |)an

home help back first fref pref prev next nref lref last post