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



I did find similar code but this looks to me like it will adjust the time based on the current value in QUTCOFFSET not the value it was at the time the unix timestamp was made. So if "today" is December 1 and the time difference is -05:00 but the unix stamp was made June 1 when the offset was only -04:00 the result will be off 1 hour won't it?

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Bucknum
Sent: Monday, September 17, 2007 12:24 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Converting Unix Jan 01 1970 UTC epoch datetime stamp to iSeries ESTdatetime stamp

I'm using something similar to the code here:
http://archive.midrange.com/rpg400-l/200105/msg00320.html

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Mike Cunningham
Sent: Monday, September 17, 2007 11:14 AM
To: RPG programming on the AS400 / iSeries
Subject: Converting Unix Jan 01 1970 UTC epoch datetime stamp to
iSeries
ESTdatetime stamp

Has anyone already created a routine to convert a Unix datetime stamp
which is in seconds from Jan 01 1970 and is in UTC time to an iSeries
datetime stamp adjusted for local time zone (in my case just US
Eastern).
I have the conversion from Unix to iSeries datetime stamp working but
I
can't figure out how to do the time zone adjustment. The time zone
adjustment needs to be made based on the datetime stamp I am receiving
not
the current datetime that it is being processed.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.