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

Home » Public Forums » archive » Error in function js2ymds (JHU/APL/S1R IDL Lib)?
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: Error in function js2ymds (JHU/APL/S1R IDL Lib)? [message #26713 is a reply to message #26584] Fri, 14 September 2001 02:39 Go to previous messageGo to previous message
Olaf Stetzer is currently offline  Olaf Stetzer
Messages: 39
Registered: September 2001
Member
> function mstime2sqlts, msdatetime
> return, js2sqlts((msdatetime-36526d0)*86400d0)
> end
>
Changed to:

function mstime2sqlts, msdatetime

if floor(msdatetime) eq 60 then begin
print, 'WARNING!'
print, ' You tried to convert a date with value 60'
print, ' which corresponds to 29.2.1900 according'
print, ' to Micro$oft! However this date does not'
print, ' exist and is converted to 1.3.1900!'
end

if msdatetime lt 61 then msdatetime=msdatetime+1
return, js2sqlts((msdatetime-36526d0)*86400d0)

end

Now i feel much better!!! :-)

Olaf

--
Dr. Olaf Stetzer
Forschungszentrum Karlsruhe
Institut f�r Meterologie und Klimaforschung
Atmosph�rische Aerosole (IMK III) - http://imk-aida.fzk.de
Tel.: +49(0)7247-82-3249 (FAX: -4332)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multi-threaded IDL
Next Topic: phase unwrapping

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

Current Time: Sun Nov 30 09:46:19 PST 2025

Total time taken to generate the page: 0.71716 seconds