View previous topic :: View next topic
|
Author |
Message |
Habeeb Shaik
New User
Joined: 29 Aug 2005 Posts: 10
|
|
|
|
Hi,
Does any body know what is binary date and how it is calculated.
Will it be of length S9(4) COMP.
Please reply if you have any idea.
Thanks,
Habib. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
take a look at the integer-of-date function |
|
Back to top |
|
|
Habeeb Shaik
New User
Joined: 29 Aug 2005 Posts: 10
|
|
|
|
Thanks enrico..
I got how binary-date is calculated by looking at interger-of-date function.
This Integer format/Binary date is the number of days since some predetermined, fixed date like 1/1/0001.
bye,
habeeb. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
A binary date can also be interpreted as Lilian Days.
Note that the resulting number of Lilian Days when using the COBOL FUNCTION, is based upon a starting date of 1601/01/01 (day one), whereas when using the LE Callable Services such as CEEDAYS, the resulting number of days is based upon a starting date of 1584/10/15 (day one).
You can override the FUNCTION starting date via a compile option, but that's not recommended.
HTH....
Regards,
Bill |
|
Back to top |
|
|
|