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

Home » Public Forums » archive » Re: UNIX time
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: UNIX time [message #42022] Tue, 14 December 2004 08:34
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> result=FILE_INFO(file)
> modification=julday(1,1,1970,0)+(result.mtime/60d/60d/24d)
>
> ...but I hope for somebody than knows any 'more elegant' way to do this.

I don't think there is a more elegant way other than putting your above
code in a function for easy calling.

FUNCTION Unix2Julian, time
Return, JulDay(1, 1, 1970) + time / 86400
END

-Mike
[Message index]
 
Read Message
Previous Topic: UNIX time
Next Topic: building loops at the command line

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

Current Time: Sat Oct 11 12:30:33 PDT 2025

Total time taken to generate the page: 1.36023 seconds