HP3000-L Archives

September 1997, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Collins <[log in to unmask]>
Reply To:
Bruce Collins <[log in to unmask]>
Date:
Tue, 2 Sep 1997 14:41:14 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (65 lines)
I've been having trouble getting "C" routines to show the correct time on
our system. This is affecting not only routines that I've written myself,
but also third party packages that are written in C. The time shown by
SHOWTIME, SHOWJOB, FINFO, etc., all appear to be showing the correct time,
it is just "C" time that appears to be wrong.

I've been told that all I have to do is set the TZ variable to the proper
time zone, but when I set it to EST5DST (which should be correct and is the
default in any case) I still have the problem.

When I run SHOWCLKS.PUBXL.TELESUP it seems to be showing the correct time
for "MPE System time", but shouldn't the offset be 4 hours during daylight
savings time? The "CTIME function return" is off by one hour although it
seems to be showing the correct offset as defined in the TZTAB.LIB.SYS
table.



:SHOWCLKS.PUBXL.TELESUP
SHOWCLKS/XL  A.10.00
DEBUG/iX C.05.08

HPDEBUG Intrinsic at: 6bc.00007258 PROGRAM+$198
PRIV=$3 := $0

  *************************************************************
  ***                                                       ***
  ***   Greenwich Mean Time : TUE, SEP  2, 1997,  3:15 PM   ***
  ***   GMT/MPE offset      : -5:00:00                      ***
  ***   MPE System Time     : TUE, SEP  2, 1997, 10:15 AM   ***
  ***                                                       ***
  *************************************************************

                 **** C Library Information ****

        Current value of Time Zone(TZ) variable : EST5EDT
        CTIME function return :  Tue Sep  2 11:15:41 1997



TZTAB.LIB.SYS

# Eastern Standard Time, Eastern Daylight Time
EST5EDT
0 3 24-30 4  1970-1973 0   EDT4
0 3 6     1  1974      0-6 EDT4
0 3 22-28 2  1975      0   EDT4
0 3 24-30 4  1976-1986 0   EDT4
0 3 1-7   4  1987-2038 0   EDT4
0 1 25-31 10 1970-1973 0   EST5
0 1 24-30 11 1974      0   EST5
0 1 25-31 10 1975-2038 0   EST5


I'm not sure what I need to set on our system to make both the system time
and the C Time display the same value.

Can anybody out there help me?

Thanks in advance

Bruce Collins

<[log in to unmask]>

ATOM RSS1 RSS2