It is right with the DATE(B) function - 01/01/1001. All the technicalities aside, forget about the word "Century" and view the letter "C" as an abstraction for the described function. Then, everything is consistent, even if technically incorrect.
Regards, Richard Schuh ________________________________ From: The IBM z/VM Operating System [mailto:[email protected]] On Behalf Of George Henke/NYLIC Sent: Tuesday, January 04, 2011 1:14 PM To: [email protected] Subject: Re: How can get the Week day ? tyvm, Chip, for the explanation. So this century really began in Jan 1, 2001, not 2000. Interesting. Certainly glad it was the "C" programmers, not the BAL programmers, that went wrong. A good BAL programmer knows that everything is relative "0", not "1". Chip Davis <[email protected]> Sent by: The IBM z/VM Operating System <[email protected]> 01/03/2011 09:25 PM Please respond to The IBM z/VM Operating System <[email protected]> To [email protected] cc Subject Re: How can get the Week day ? Technically, the first year of each century is cc01, not cc00. Due to an appalling lack of consistency, the C programmers in the first decade ("0") of the first century ("0") declared the first year to be "1". :-) -Chip- On 1/3/11 16:03 George Henke/NYLIC said: > Not quite sure what is the difference between the number of days since > the beginning of the century and the number of days since the most > recent year ending in '00' unless going back or ahead more than a > century or 2. > > But I suppose there is a difference or it would have been moot. > > *Chip Davis <[email protected]>* > Be careful with Date('C'). It doesn't really give you the number of > days in the current century (as it was originally documented). It > returns the number of days since the beginning of the most recent year > ending in '00', e.g. '2000'. > > On 1/3/11 14:25 George Henke/NYLIC said: > > REXX also has a nifty function called Century Day that simplifies things > > by working in century days, days since the beginning of the century, > > rather than days since the beginning of the year.
