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
Re: Time Woes [message #30559 is a reply to message #30471] Thu, 02 May 2002 06:11 Go to previous messageGo to previous message
btupper is currently offline  btupper
Messages: 55
Registered: January 2002
Member
On Wed, 1 May 2002 13:41:10 -0600, David Fanning <david@dfanning.com>
wrote:

> 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?
>

Howdy,

Do you mean that you want to know a Julian time stamp or Calendar date
for the time array values? I don't have IDL in front of me right now
so I can't check this, and I can't clearly recall the syntax.

(The following supposes the 'seconds' are just the run-of-the-mill
kind of seconds...)

; start time in seconds
t0 = JulDay( 0,1 1980, 0, 0, 0)
; add the elapsed time since t0
t[i] = t0 + timeArray[i]
;convert to calendar values
CalDat, t[i], month, day, year, hour, min, sec

I have a sneaky feeling that your problem is more complicated than
this solution will bridge. The only thing I do well with time (in
IDL) is squander it, but I hope it helps anyway.

Ben
[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: Sat Nov 29 07:07:53 PST 2025

Total time taken to generate the page: 1.12528 seconds