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

Home » Public Forums » archive » Re: Posix Time Functions
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: Posix Time Functions [message #17764 is a reply to message #17749] Thu, 11 November 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Eric Kihn wrote:
> I posted this a while a go but didn't hear anything so I thought I'd
> take one more shot. Does anyone know of / have any POSIX time functions
> for IDL? That is a function which takes seconds since Jan, 1 1970 and
> returns a nice date structure (year, month, day,etc..). Such beasties
> are plentiful in Java, C etc so I figure one should be in IDL also.

How about this:
IDL> julian = systime(/julian)
IDL> caldat, julian, month, day, year, hour, minute, second
IDL> print, julian, month, day, year, hour, minute, second
2451493.9 11 11 1999
8 35 19.999981

Note that my Unix host is set to US Central Standard Time.

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Zoom
Next Topic: TRIANGULATE says "Points are co-linear, no solution"

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

Current Time: Wed Oct 08 19:20:32 PDT 2025

Total time taken to generate the page: 0.00401 seconds