Rexx2Nrx.Rexx2RT.RexxTime  ( vs 4.00, January 2003)

The class RexxTime implements the classic Rexx functions date and time in their various options

Import Rexx2Nrx.Rexx2RT.RexxTime

Class class-name[parameters] USES RexxTime, ...

In summary, the following methods are available:

method date (opt =Rexx '  ') public static returns Rexx

     where 'opt' may be any of

    '  '         current date in the format DD MMM YYYY

    'J'          Julian date in the format YYDDD

    'D'         the current Day-Number in the current year, in the format DDD

    'E'         current date in European notaion (DD/MM/YY)

    'M'        full english name of the current month (January, February, ...)

    'N'         current date in default format (DD MMM YYYY)

    'O'        current date in ordered format (YY/MM/DD)

    'S'        current date in Standard Format (YYYYMMDD)

    'U'        current date in US format (MM/DD/YY)

    'W'       currrent Weekday (english name of the day of the week)

    otherwise current Date in the Format YYYY-MM-DD

In the formats above, the various parts of the format have the following meaning:

    DD        Day of month

    MM        Month

    YY        2 digit year

    YYYY    4-digit year

    MMM    3-character abbreviation of month

    DDD     3-digit day within current year.