In the Rexx Reference Manual, Section 7.4.65, under offset it says:
Offset
returns the offset of the local time from UTC in microseconds. The offset value will be negative for timezones west of the Prime Meridian and positive for timezones east of Prime Meridian. The local time(’F’) value can be converted to UTC by adding the time(’O’) value.
This is incorrect. The last sentence should read:
The local time('F') value can be converted to UTC by SUBTRACTING the time('O') value.
I am west of GMT, so my time('O') value is returned as a negative number. GMT is ahead of me so I must subtract this negative number to arrive at UTC.
example Local Time = 10:50PST - ( -8:00 Offset) = 18:50 UTC
Anonymous
(Try#2, don't know what happened to my first post)
This patch changes funct.xml in docs/branches/4.1.3/trunk/rexxref
It should also apply cleanly to docs/branches/4.1/trunk/rexxref
In addition it should apply "with offset 261" to /docs/trunk/rexxref
--- funct.xml (revision 9260)
Changed "adding" to "subtracting" in "can be converted to UTC by adding the time('O') value"
Committed revision 9280. r[9280] docs 4.1.3 beta
Committed revision 9281. r[9281] docs 4.1 fixes
Committed revision 9282. r[9282] docs trunk
Thanks Erich for the patch.
This documentation bug is fixed in the ooRexx 4.1.3 release.