× 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.



There is a system value, QUTCOFFSET, that will give you the UTC offset for the system.

Found in QSYS2.SYSTEM_VALUE_INFO -- View
Or in the Retrieve System Values (QWCRSVAL) API
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/apis/qwcrsval.htm

Michael Salsman

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of David Gibbs via RPG400-L
Sent: Friday, May 3, 2019 09:50
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: David Gibbs <david@xxxxxxxxxxxx>
Subject: Re: Time zone for a Date and Time

On Fri, May 3, 2019 at 10:44 AM Slanina, John via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:
Is there a way to know if a date and time is in the daylight time zone or the standard time zone via an RPGLE program ?
I need to take date and time to its unix timestamp value which is in UTC.

What's the input?

There appears to be various web api's available to determine timezone information (although some aren't free).

david

--
IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 615 miles (Yes, you read that right) in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax-deductible donation to my ride by visiting https://urldefense.proofpoint.com/v2/url?u=https-3A__mideml.diabetessucks.net&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=ls1vEGzGwgqZJyzZs7sGJ8CtK97ty2KqTEwuy7Bm0ek&m=h9I11Y3H4MB5RMpJ5k1K9PiF2ooJC37r8pHCGWys1d4&s=SlwmyHGCAk7-XEKxqPfX5MENMZsIaw9vn7PlVKtJJLg&e=.

You can see where my donations come from by visiting my interactive donation map ... https://urldefense.proofpoint.com/v2/url?u=https-3A__mideml.diabetessucks.net_map&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=ls1vEGzGwgqZJyzZs7sGJ8CtK97ty2KqTEwuy7Bm0ek&m=h9I11Y3H4MB5RMpJ5k1K9PiF2ooJC37r8pHCGWys1d4&s=Yawwz3KxENOVi6pxRjIpqIAjOhdWscmRy-FUxOMW2cA&e= (it's a geeky thing).

I may have diabetes, but diabetes doesn't have me!
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_rpg400-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=ls1vEGzGwgqZJyzZs7sGJ8CtK97ty2KqTEwuy7Bm0ek&m=h9I11Y3H4MB5RMpJ5k1K9PiF2ooJC37r8pHCGWys1d4&s=q_ECGcCn3UpVCYQjBDgQlcu-3QvJa4J6m5SYpPg6fzY&e=
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_rpg400-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=ls1vEGzGwgqZJyzZs7sGJ8CtK97ty2KqTEwuy7Bm0ek&m=h9I11Y3H4MB5RMpJ5k1K9PiF2ooJC37r8pHCGWys1d4&s=ieZt8gXNU_C-IDbcTu9JbG0iuARIJ4WpluPEVvFSAvs&e=.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.com&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=ls1vEGzGwgqZJyzZs7sGJ8CtK97ty2KqTEwuy7Bm0ek&m=h9I11Y3H4MB5RMpJ5k1K9PiF2ooJC37r8pHCGWys1d4&s=l53UywbNoaoNcyFkI6bkdA7o_JStOnhm0FThFKYmpkM&e=

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.