The company, Roger, has offices all over the USA and Canada, and stores an
off-set in each location from the Eastern time zone. So, for them Central
is -1, Mountain is -2, etc.. Those are static versus the off-set to GMT
which changes twice per year. But I totally see what you are saying.
Steve
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> On Behalf Of Roger Harman
Sent: Friday, December 28, 2018 22:21
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
Subject: RE: Time Zone Computation
The data from iana.org was the closest thing I could find a few years ago.
My company has offices from Hawaii to New York but we just timestamp
everything with local time of our Los Angeles office - PDT/PST.
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck
Calabro
Sent: Friday, December 28, 2018 7:59 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Time Zone Computation
On Fri, Dec 28, 2018, 15:43 <txpenguin1@xxxxxxxxxxx wrote:
So, my dilemma is this - based upon a specific date and time, in a
specific city/state, how can I compute the number of hours difference
to GMT for that moment?
I don't know of a public database of city, date, UTC offset. Because that's
what is needed for a generic solution to this problem. Because the date of
the switch between summer and winter time has changed through the years due
to legislation.
Perhaps a universal, generic solution is overkill for the immediate problem?
-- buck
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.