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 #30570 is a reply to message #30471] Wed, 01 May 2002 13:10 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Wed, 1 May 2002, David Fanning 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?

First, before you deal with any conversions, you have to understand
exactly what it means to have "seconds since 1980".

What clock system are you on? Is it 365 day years (and leap-years), or
365.25, or something more accurate than that? The clocks here at work
have leap-seconds thrown in every few months (I believe this is one of
the many subtle distinctions between UTC, GMT, and Zulu, but am not
sure).

Then again, depending on the resolution of the data (and x-axis if you
are plotting it), does any of these different "times" matter to you?

Beyond that, I am not sure what you want to convert it to... Can't you
just start doing division until you have it into "days since 1980"?

The other option is to add 10 years worth of seconds onto the array
(again: exactly how many seconds are there in your year calendar?),
now you have it as seconds from 1 Jan 1970. This is the same format as
UNIX and the IDL SYSTIME() function, so you should be able to handle
this array better...

Does this help?

-k.
--
------------------------------------------------------------ ---------------
Ken Mankoff http://lasp.colorado.edu/snoe/
http://lasp.colorado.edu/mars/
http://lasp.colorado.edu/~mankoff/ http://lasp.colorado.edu/marsrobot/
------------------------------------------------------------ ---------------
[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 Oct 11 11:25:14 PDT 2025

Total time taken to generate the page: 0.96197 seconds