×
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.
Currently, the system clock is set to local time. Applications on IBM i
OS currently must be written to derive GMT (ie. Localtime - UTCoffset),
and use or store them as desired.
-Eric
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jonathan Mason
Sent: Saturday, November 20, 2010 12:42 PM
To: 'RPG programming on the IBM i / System i'
Subject: RE: Finding GMT time from a timestamp field
What do you get if you plug the values into the CEExxxx ILE API's?
Presumably it'll assume the dates/times relate to the current settings
on
the box.
Jonathan
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of DeLong, Eric
Sent: 04 November 2010 22:23
To: RPG programming on the IBM i / System i
Subject: RE: Finding GMT time from a timestamp field
No, not really... IBM has stated its intention to eventually support
job-level UTC offset, effectively allowing each job on the system to
determine its appropriate time zone, and to apply this job UTC offset on
all date values presented to the user. However, to make this mechanism
work, IBM must change the date storage and management code in the OS to
physically store all date/time/timestamp fields in GMT. Until this date
storage change is in place, we have no way to determine what UTC offsets
were applied to the source date/time.
-Eric DeLong
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Thursday, November 04, 2010 4:07 PM
To: RPG programming on the IBM i / System i
Subject: Finding GMT time from a timestamp field
Lets just say, for discussion, that there are two records. One has a
time stamp of 8:00 am 11/1/2008 and the other has a time stamp of 10:00
am 7/4/2009. I do not know where on the planet these records were
produced, or on what midrange machine.
Is it possible to know the difference in hours?
(Don't worry about days, that not the issue.)
Thanks.
As an Amazon Associate we earn from qualifying purchases.
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.