#264 Add UTC to DATE() time() functions

v4.0
closed
None
5
2012-08-14
2008-01-14
Anonymous
No

All known current computer operating systems now support system calls to obtain UTC (universal time coordinated, also known as GMT or Greenwich Mean Time) that is a standard for time around the world. The ability to return UTC usually involves calling the operating system API for date and time and specifying GMT or UTC as the time standard.

UTC is often required in enterprise and Internet applications where a single time standard is needed for many reasons.

Currently, the REXX language standard functions for DATE and TIME builtin functions do not support returning UTC. My suggestion is to add the ability to use UTC as the time standard for both DATE and TIME functions, not as a default, but as an optional operation.

Availability of UTC in REXX language standard will bring the language into compliance with world-wide applications and improve the universality of the language standard.

Discussion

  • Rick McGuire

    Rick McGuire - 2008-01-14

    Logged In: YES
    user_id=1125291
    Originator: NO

    Notice: This is an acknowledgment that we've received your Request for Feature Enhancement and are starting the evaluation process. If this is deemed not to be a desirable feature by the ooRexx development community, you will receive a notice of rejection and details about how to appeal that decision.

    An RFE slated for rejection that has not been appealed within 30 days will be closed.

    If the RFE is not rejected, it will be left in an Open state until someone volunteers to implement the feature. Non-rejection does not imply that the feature has been scheduled for inclusion in any particular release, but rather that the feature has been deemed a potential worthwhile addition to the ooRexx platform.

    Discussions such as syntax specifics, implementation questions, etc. can be asked on the oorexx-devel mailing list.

     
  • Mark Hessling

    Mark Hessling - 2008-01-14

    Logged In: YES
    user_id=86185
    Originator: NO

    The REXX language does currently provide support for obtaining UTC.
    The ANSI standard specifies the 'O' option to TIME BIF for returning the offset of local time from GMT/UTC in microseconds.

     
  • Rick McGuire

    Rick McGuire - 2008-01-14

    Logged In: YES
    user_id=1125291
    Originator: NO

    Thanks Mark. I wasn't aware the ANSI standard had defined that. Microseconds is not exactly the most useful unit for timezone offset, but I can go with that.

     
  • Rick McGuire

    Rick McGuire - 2008-08-14

    Logged In: YES
    user_id=1125291
    Originator: NO

    The time() function has had the ANSI "O"ffset option added, which returns the offset of local time from UTC. The DateTime class has had a wider range of timezone capability added, with DateTime instances having a timezone value so that all comparison and math are performed using the UTC value.

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-09-16

    This request for a feature enhancement has been included in a prior release so the tracker item is being closed.

     


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