WANTED timezone conversion subroutines

Greg Corson milo at ndmath.UUCP
Tue Feb 14 10:01:07 AEST 1989


I am looking for some subroutines with the capability of converting
time from certain timezones (ie:EST, PST...etc) to GMT and then back
to a different timezone.  The application is basically this, someone
on a network enters a date and time in THEIR timezone(say...PST).
I convert that to GMT and store it in a database, later on someone
else in a DIFFERENT timezone (say EST) calls up that record.  I need
to convert the stored GMT time back to EST.

What I am working on is basically a signup sheet where users enter 
times and dates.  The trick is, the users are all in different time
zones so I need to be able to convert between timezones so the
entries on the signup sheet will always be shown in the users timezone
regardless of what time zone the times were entered in.

A routine that converted from (struct tm) time/date form to epoch 
time would be just the ticket.  Then I could store the times in the
database as EPOCH times and convert them for display with LOCALTIME.

If you have any ideas or code segments you think might help, please
mail them directly to me, I don't read the net often enough avoid
missing things posted there.

Thanks!

Greg Corson
19141 Summers Drive
South Bend, IN 46637
(219) 277-5306 
{pur-ee,rutgers,uunet}!iuvax!ndmath!milo



More information about the Comp.unix.wizards mailing list