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

Home » Public Forums » archive » Re: sky is falling, again ?
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: sky is falling, again ? [message #75610 is a reply to message #75558] Wed, 16 March 2011 10:53 Go to previous messageGo to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
On 03/16/2011 06:06 PM, Kenneth P. Bowman wrote:

>> Because of this problem, we now defined our own time system based on
>> "milliseconds since ..." (working with LONG64 formats to be sure). It
>> works nice, but it was a long (and a bit boring) work to make it
>> flexible and stable.
>>
>> I was wondering what are you people doing?
>>
>> Fab
>
> I have a small library to do date and time calculations that are
> exact to the second using structures and integer arithmetic. It
> could be modified to add a millisecond or microsecond field.
>
> You can download it here
>
> http://idl.tamu.edu/idl/Downloads.html
>
> (see bowman_lib.zip)
>
> Ken Bowman
>
>
>
> IDL> date1 = MAKE_DATE(2011, 3, 16, 12, 4, 0)
> IDL> date2 = MAKE_DATE(2011, 3, 17, 12, 4, 0)
> IDL> print, TIME_DIFF(date2, date1)
> 86400
> IDL> print, MAKE_ISO_DATE_STRING(date1)
> 2011-03-16 12:04:00
> IDL>

Yeah, once again I re-did something that already exists thousands of
time ;-)
Reading this newsgroup regularly, I learned the most important thing
ever: "first look if someone didn't do it for you"

Nice community, by the way...

Fab
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Help menu in 8.0
Next Topic: satellite data

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

Current Time: Wed Oct 08 19:56:57 PDT 2025

Total time taken to generate the page: 0.00437 seconds