comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Conversion of MS 64bit timestamps to JD
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Conversion of MS 64bit timestamps to JD [message #93865 is a reply to message #93861] Sat, 12 November 2016 15:25 Go to previous messageGo to previous message
andrewcool777 is currently offline  andrewcool777
Messages: 27
Registered: November 2012
Junior Member
Hi Dick,

This is Gold Star stuff! Maybe even an Elephant stamp too.

Of course, having the ability to record 100nanosecond intervals assunes that the Windows clock is up to that int eh first place, and well calibrated, but that's another story.

A friend and I recorded and occultation by the Centaur asteroid Chariklo
on Oct 1st, using SER format. I've written a converter to get individual FITS
files from the SER file, but it needs those 64bit timestamps converted too.

Many Thanks.

Andrew

Working the other way, to turn serDateTime into six parameters:

IDL> serDateTime = 636144921840000001 ; 2016-11-11T20:16:24.0000001 from above

IDL> Jul2Greg,(serDateTime / (24LL * 60 * 60 * 10000000)) + Greg2Jul(1,1,1,0,0,0),mo,d,y
IDL> increments = serDateTime MOD (10000000LL * 24 * 60 * 60)
IDL> s = increments MOD (10000000LL * 60) / 1D7
IDL> m = increments / (10000000LL * 60) MOD 60
IDL> h = increments / (10000000LL * 60 * 60)

This seems to have worked:

IDL> help,y,mo,d,h,m
Y LONG = 2016
MO LONG = 11
D LONG = 11
H LONG64 = 20
M LONG64 = 16


> Andrew
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Logical operators
Next Topic: Copying HDF5 datasets to a new HDF5 file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:54:50 PDT 2025

Total time taken to generate the page: 0.00403 seconds