A generic would probably work. To be honest, I am not sure of the need of
accuracy, but you know every time we try to generalize it tends to come back
on us.
Also, as a side note, I realize now that is not a hyphen before the off-set.
That is a -4 hours which was the GMT off-set of my test data. That could
just as easily be +02:00 if my data was the other direction of GMT. Not
that it matters to the issue, but a clarification of the data syntax.
Steve
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> On Behalf Of Buck Calabro
Sent: Friday, December 28, 2018 21:59
To: RPG programming on the IBM i (AS/400 and iSeries)
<rpg400-l@xxxxxxxxxxxx>
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
As an Amazon Associate we earn from qualifying purchases.