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

Home » Public Forums » archive » Time Woes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
CDF_EPOCH (was Re: Time Woes) [message #30550 is a reply to message #30471] Thu, 02 May 2002 12:05 Go to previous messageGo to previous message
Brian Jackel is currently offline  Brian Jackel
Messages: 34
Registered: January 1998
Member
Hi

I've found the CDF_EPOCH routine to be very
useful for this kind of thing. For your example

CDF_EPOCH,epoch0,1980,1,1,0,0,0,/COMPUTE
CDF_EPOCH,today,2002,05,02,12,50,30,/COMPUTE
dt= (today-epoch0)/1.0d3 ;difference in seconds

This doesn't directly address the tricky question
of leap-seconds, but the CDF source code is available
(http://nssdc.gsfc.nasa.gov/cdf/cdf_home.html)
so in theory you could check it to see what goes on
inside.

Brian


David Fanning wrote:
>
> Folks,
>
> OK, I'm completely lost.
>
> I've been perusing the JHAPL IDL library for days, it seems like,
> but my eyes are still crossed.
>
> I have a time array that purports to be the number of seconds
> from 1 Jan 1980. How in the world do I convert that to something
> I can use with routines I have access to?
>
> Thanks,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: default window size
Next Topic: Call_External and referenced symbol not found

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

Current Time: Sun Nov 30 16:00:30 PST 2025

Total time taken to generate the page: 1.03677 seconds