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

Home » Public Forums » archive » Re: Get time and date from a server using a socket
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: Get time and date from a server using a socket [message #65339 is a reply to message #65331] Fri, 27 February 2009 07:09 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
I seem to fuss with there odd time formats all the time, normally for
satellite mission epoch time.
My best successes are using a combination of this article:
http://www.dfanning.com/code_tips/dayofyear.html
and the routines from the JHUAPL library
http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html

I always seem to send up calculating the offset in seconds between the
epoch time given and the Julian seconds used by the JHUAPL lib (JS are
seconds after 2000 Jan 1 0:00.) subtract and then you can convert to
JD or whatever using that lib.

Here is an example that turns the epocj time used by the THEMIS
mission to the JHUAPL Julian seconds.
http://people.bu.edu/balarsen/IDLdoc/euv_date/thm_time2js.ht ml



Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
http://people.bu.edu/balarsen/Home/IDL
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Fractions in IDL
Next Topic: Get time and date from a server using a socket

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

Current Time: Sat Oct 11 01:33:22 PDT 2025

Total time taken to generate the page: 0.87893 seconds