Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC Timestamp conversion
@ 1997-09-12  4:00 Robert Strecker
  1997-09-15  4:00 ` schubot
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Strecker @ 1997-09-12  4:00 UTC (permalink / raw)



Hi,

I have a customer that has transferred an image of a file using
Reflection 2.0 to a PC running Windows.  The file contains a timestamp
(64 bits, 100 nanosecond units since Nov17, 1858).  Does anyone know of
existing software that will convert the timestamp to Windows format (32
bits, seconds since Jan 1, 1970)?

Thanks in advance.

    -Bob




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DEC Timestamp conversion
  1997-09-12  4:00 DEC Timestamp conversion Robert Strecker
@ 1997-09-15  4:00 ` schubot
  0 siblings, 0 replies; 2+ messages in thread
From: schubot @ 1997-09-15  4:00 UTC (permalink / raw)




In article <34194B1C.43FD3983@voicenet.com>, Robert Strecker <rstreck@voicenet.com> writes:
> Hi,
> 
> I have a customer that has transferred an image of a file using
> Reflection 2.0 to a PC running Windows.  The file contains a timestamp
> (64 bits, 100 nanosecond units since Nov17, 1858).  Does anyone know of
> existing software that will convert the timestamp to Windows format (32
> bits, seconds since Jan 1, 1970)?
> 
> Thanks in advance.
> 
>     -Bob
> 
To convert subtract 35067168000000000 from the timestamp value
to adjust the base to 1-jan-1970,
then divide by 10,000,000 to convert the 100ns resolution to seconds.

The tricky part is doing this as 64 bit numnbers and determining what
order to interpret the bytes.

For reference, some HEX values of VMS times are:

 1-Jan-1970 00:00:00.00- 007C9567 4BEB4000 = 35,067,168,000,000,000
 1-JAN-1970 00:00:01.00- 007C9567 4C83D680
 1-SEP-1997 00:00:00.00- 009B99F2 74270000


Ronald.Schubot
@wmich.edu
Western Michigan University




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-15  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-12  4:00 DEC Timestamp conversion Robert Strecker
1997-09-15  4:00 ` schubot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox