× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.