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

Home » Public Forums » archive » Interesting 'feature' of dt_add
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Interesting 'feature' of dt_add [message #14546] Tue, 09 March 1999 00:00
Vapuser is currently offline  Vapuser
Messages: 63
Registered: November 1998
Member
Consider the following 'feature'



IDL> tt=dt_add( var_to_dt( 1992,1,1,0,0,0), second=3600 )
IDL> print,tt.year,tt.month,tt.day,tt.hour,tt.minute,tt.second
1992 1 1 0 59 60.0000
IDL> tt=dt_add( var_to_dt( 1992,1,1,1,0,0), second=3600 )
IDL> print,tt.year,tt.month,tt.day,tt.hour,tt.minute,tt.second
1992 1 1 1 59 60.0000
IDL> tt=dt_add( var_to_dt( 1992,1,1,2,0,0), second=3600 )
IDL> print,tt.year,tt.month,tt.day,tt.hour,tt.minute,tt.second
1992 1 1 3 0 0.00000
IDL> tt=dt_add( var_to_dt( 1992,1,1,3,0,0), second=3600 )
IDL> print,tt.year,tt.month,tt.day,tt.hour,tt.minute,tt.second
1992 1 1 3 59 60.0000
IDL> tt=dt_add( var_to_dt( 1992,1,1,4,0,0), second=3600 )
IDL> print,tt.year,tt.month,tt.day,tt.hour,tt.minute,tt.second
1992 1 1 4 59 60.0000
IDL> tt=dt_add( var_to_dt( 1992,1,1,5,0,0), second=3600 )
IDL> print,tt.year,tt.month,tt.day,tt.hour,tt.minute,tt.second
1992 1 1 6 0 0.00000


Apparently, the program works in the boundaries between days/months/years

IDL> tt=dt_add( var_to_dt( 1992,12,31,23,0,0), second=3600 )
IDL> print,tt.year,tt.month,tt.day,tt.hour,tt.minute,tt.second
1993 1 1 0 0 0.00000

Still, it would be nice if worked everywhen.

whd
[Message index]
 
Read Message
Previous Topic: Re: Free IDL Software
Next Topic: voxel_proj images

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

Current Time: Sat Oct 11 14:10:26 PDT 2025

Total time taken to generate the page: 6.63964 seconds