(However, the year ended on December 31, leaving the days between in limbo.) This module assumes January 1 is the first day of the year. The "Transition" argument is the first Julian date to be considered as belonging to the Gregorian calendar. C., the months were Jan=31, Feb=29(30), Mar=31, Apr=30, May=31, Jun=30, Jul =31, Aug=30, Sep=31, Oct=30, Nov=31, Dec=30 This module assumes the month lengths as we know them. The United Kingdom, in particular, started the year on March 25 until 1752.Meanwhile, you can try ut_calendar if you are using a "standard" calendar.You can also try the temporary ut_calendar_fix function, which was added in NCL V6.4.0 for test purposes and potentially as a replacement function.So if you are looking to become a freelance translator, or if you are one and want to improve your skills, read on.I assume that you are already bilingual, or nearly bilingual in at least one language pair.Here are some examples how to use REXX built-in functions to solve usual date calculation and conversion problems: /* get today's date in 'Base' date format, e.g.'729584' */ today = Date('Base') /* calculate next day; returns '729585' */ tomorrow = today 1 /* calculate previous day; returns '729583' */ yesterday = today - 1 By means of the translate function, a date format (assuming 'Standard' date format) can be easily transformed (by reordering the digits and inserting or removing separation characters) into any format desired with a single REXX statement: /* ISO Standard date format without separator characters */ my ISOdate = '19430715' /* returns '' */ date1 = Translate('', my ISOdate, '12345678') /* returns '07/15/1943' */ date2 = Translate('56/78/1234', my ISOdate, '12345678') /* returns '15/07/1943' */ date3 = Translate('78/56/1234', my ISOdate, '12345678') date1 = '' /* returns '19430715' */ my ISOdate = Translate('78904512', date1, '1234567890') date2 = '07/15/1943' /* returns '19430715' */ my ISOdate = Translate('78901245', date2, '1234567890') /* ISO Standard date format with separator characters */ an ISOdate = '1943-07-15' /* returns ISO Standard date w/o separators '19430715' */ my ISOdate = Translate('12346790', an ISOdate, '1234567890') Another quite useful feature of REXX is the windowed handling of the 'deficient' short date formats currently causing so much trouble because of the Y2K.
If you are only nearly bilingual, you should only translate into your native language.Important note: ut_calendar and cd_calendar treat "year 0" differently. The default is to use the mixed Julian/Gregorian calendar.To change the calendar, you can set If the input data does not contain a units attribute, then an error message will be printed and all missing values returned.Remark: Note that the date conversion function is not available in OS/2 Warp and REXX/6000.Please be also aware that the functions retrieving file dates are not available in VM/CMS and MVS/TSO.
In this case, REXX by default uses the hundreds within the window Therefore, the 'Usa' date '07/15/43' is interpreted as 'Standard' date '20430715' because the year 1943 would be outside the 100 year wide window of today, July 17, 1998!