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 #75614 is a reply to message #75611] Wed, 16 March 2011 10:06 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <8uc870F5jqU1@mid.dfncis.de>,
Fabzou <fabien.maussion@tu-berlin.de> wrote:

> On 03/16/2011 03:54 PM, Norbert Hahn wrote:
>> nata<bernat.puigdomenech@gmail.com> wrote:
>>
>> with the number of milliseconds missing. But you are close to
>> the next minute.
>> As usual with quantized values, the last digit may be wrong.
>>
>> Norbert
>
> 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>
[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 18:10:45 PDT 2025

Total time taken to generate the page: 0.00182 seconds