Binary date to gregorian Date



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Re: Binary date to gregorian Date

Postby Akatsukami » Wed Nov 13, 2013 1:06 am

:roll: Do you know how to browse a data set displaying the data in hexadecimal?
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Re: Binary date to gregorian Date

 

Re: Binary date to gregorian Date

Postby mail4rsb » Wed Nov 13, 2013 1:18 am

Is this what you are referring too?

Ç5
6F
85
--
0N
FD
05
--
Åà
64
74
--
Åà
64
74
--
0N
FD
05
--
mail4rsb
 
Posts: 6
Joined: Tue Nov 12, 2013 12:06 am
Has thanked: 0 time
Been thanked: 0 time

Re: Binary date to gregorian Date

Postby Akatsukami » Wed Nov 13, 2013 1:30 am

Well, these are certainly not ordinal (oft miscalled "Julian") dates. They could be reduced or Dublin Julian day numbers, but that leads to some rather odd interpretations. I don't think I care to draw this out any further.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Binary date to gregorian Date

Postby BillyBoyo » Wed Nov 13, 2013 1:53 am

mail4rsb,

It may be possible in SORT, but since your input is non-standard, we'd need to know how to interpret those values. We'd need to know what the Assembler program is doing.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Binary date to gregorian Date

Postby dick scherrer » Wed Nov 13, 2013 2:08 am

Hello,

Might this value just be the number of days from some fixed date in the past?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Binary date to gregorian Date

Postby steve-myers » Fri Nov 15, 2013 7:01 am

Another idea that just occurred to me is the 16 bits are ordered like yyyyyyyddddddddd, where yyyyyyy is the year, though whether it starts in 1900, or so other year I won't try to guess, and ddddddddd is the day of year. This is just a variation on the method MS-DOS used to store the date in a directory entry. If my guess is correct, I doubt if sort can do the translation you want.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Previous

Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post