HP3000-L Archives

April 2000, 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:
Dennis Handly <[log in to unmask]>
Reply To:
Dennis Handly <[log in to unmask]>
Date:
Sat, 8 Apr 2000 10:11:44 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
Michel Gauthier ([log in to unmask]) wrote:
: We've been facing that problem last year for an already existing application
: for which none of the timezone concerns were anticipated when we built it.

: However I had a few reflections on the topic and I concluded that storing
: date/time is not enough and Timezone (or offset) should be stored too.
: I'd be glad to know how you will deal with this
: Michel Gauthier

If you store only the UTC time then you can then display this based on
each user's TZ variable.

You need to be careful here getting the time because one way or the other
is expensive.  I.e. on HP-UX calling time(2) is cheap.  Converting it to
local or GMT (really UTC) is expensive.

So compute the timezone difference once and then use the cheapest way to get
the time.

ATOM RSS1 RSS2