Home » Java » java – Need to know VMS date to Long conversion-Exceptionshub

java – Need to know VMS date to Long conversion-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

i am trying to find the conversion logic behind VMS date to long data type. for example in RDB database date column is timesatmp. those value passes as VMS date to long conversion.

Date value: 2008-11-13 05:10:39

response long value is : 47332698396532279

Need to know how this date is converted as long . the enoding logic should match with response value

How to&Answers:

As michaeak wrote: The integer number shows the number of milliseconds after 01.01.1970 00:00:00.

To convert this to a 64 bit integer you need to know the resolution and base of that 64bit integer.