HP3000-L Archives

November 1999, Week 2

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:
Chris Breemer <[log in to unmask]>
Reply To:
Chris Breemer <[log in to unmask]>
Date:
Thu, 11 Nov 1999 18:54:02 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
Hi all,
Been a while since I posted here. Perhaps someone can help me with a
date anomaly.

I have recently upgraded our 5.5 box to PP6 plus assorted patches.
According to HPs y2k matrix, it should be fully y2k compliant.

The dates retrieved by my C program are 75 minutes off target :

    Time is now: [17:30:00]

whereas SHOWTIME correctly reports:

    THU, NOV 11, 1999,  6:45 PM

The C code reporting the weird date is the same I have used for years :

    #include <time.h>
    struct  tm      *p;
    int     temp;
    char    ftime[20];

                temp = time(NULL);
                p = localtime((time_t *)&temp);
                strftime(ftime, sizeof(ftime)-1, "[%H:%M:%S]", p);
                printf("Time is now: %s \n", ftime);

The timezone variable TZ is set to MET-1METDST, but changing that does
not seem to help
much anymore. I have a feeling something has changed in my C libraries
since
the y2k excercise.

Anyone got a clue ? I'm stumped.
Thanks,

    Chris Breemer
    Compuware Technical Support Specialist

ATOM RSS1 RSS2