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

Home » Public Forums » archive » Leap Seconds and JULDAY()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Leap Seconds and JULDAY() [message #91399] Wed, 08 July 2015 15:23 Go to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
Hello IDL wizards!

I have data timestamped with "seconds-since-epoch," in this case the epoch is 1/1/1993 00:00.

My results had been 8 seconds off, which I never noticed, but then last week, I started to have problems, and found my results were 9 seconds off.

My method is this:

EPOCH=JULDAY(1,1,1993,0,0,0)
SECONDS_IN_A_DAY = DOUBLE(24l*60*60)
TIMESTAMP_UTC = EPOCH + (EPOCH_SECONDS/SECONDS_IN_A_DAY)

This gives the wrong answer, because JULDAY() doesn't have epoch seconds. This makes me sad, though there may be some detailed reason why it shouldn't.

--Edward H.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Plotting one point per loop
Next Topic: RETURNING VALUES FROM FUNCTIONS

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

Current Time: Wed Oct 08 15:07:25 PDT 2025

Total time taken to generate the page: 0.00404 seconds