HP3000-L Archives

April 1998, Week 3

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:
Dirickson Steve <[log in to unmask]>
Reply To:
Dirickson Steve <[log in to unmask]>
Date:
Thu, 16 Apr 1998 10:47:57 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (15 lines)
        <<Not quite. It returns UTC, as reported by the OS, adjusted by the
offset
        specified in the TZ environment variable. But the offset calculation
only
        works properly if
        1)      TZ is properly set, and
2)      tzset() is called before any of the time-using library functions>>


Correction: time() returns UTC, which is then typically fed to things like
localtime() or strftime(), and *they* do the TZ offset thing. Sorry for the
confusion.

Steve

ATOM RSS1 RSS2