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 #93866 is a reply to message #93865] Sun, 13 November 2016 03:48 Go to previous messageGo to previous message
andrewcool777 is currently offline  andrewcool777
Messages: 27
Registered: November 2012
Junior Member
Hi Dick,

Using your method, here are the decodes of the 64bit timestamps
embedded in a short SER image that a friend supplied.

Cheers,

Andrew


2016.0000 11.000000 13.000000 6.0000000 38.000000 16.072238
2016.0000 11.000000 13.000000 6.0000000 38.000000 16.332335
2016.0000 11.000000 13.000000 6.0000000 38.000000 16.593015
2016.0000 11.000000 13.000000 6.0000000 38.000000 16.851370
2016.0000 11.000000 13.000000 6.0000000 38.000000 17.114491
2016.0000 11.000000 13.000000 6.0000000 38.000000 17.456318
2016.0000 11.000000 13.000000 6.0000000 38.000000 17.633305
2016.0000 11.000000 13.000000 6.0000000 38.000000 17.891857
2016.0000 11.000000 13.000000 6.0000000 38.000000 18.152162
2016.0000 11.000000 13.000000 6.0000000 38.000000 18.412077
2016.0000 11.000000 13.000000 6.0000000 38.000000 18.671080
2016.0000 11.000000 13.000000 6.0000000 38.000000 18.932369
2016.0000 11.000000 13.000000 6.0000000 38.000000 19.191133
2016.0000 11.000000 13.000000 6.0000000 38.000000 19.451026


On Sunday, 13 November 2016 09:55:34 UTC+10:30, andrew...@gmail.com wrote:
> 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 14:11:13 PDT 2025

Total time taken to generate the page: 0.00363 seconds