#175 Text for Time offset incorrect

4.1.3
closed
Reference (110)
5
2013-07-09
2011-01-28
Bruce
No

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

Discussion

  • Erich

    Erich - 2013-05-31

    (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"

     
  • Mark Miesfeld

    Mark Miesfeld - 2013-06-04

    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.

     
  • Mark Miesfeld

    Mark Miesfeld - 2013-06-04
    • status: open --> pending
    • assigned_to: Mark Miesfeld
    • Group: --> 4.1.3
     
  • Mark Miesfeld

    Mark Miesfeld - 2013-07-09
    • status: pending --> closed
     
  • Mark Miesfeld

    Mark Miesfeld - 2013-07-09

    This documentation bug is fixed in the ooRexx 4.1.3 release.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks