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

Home » Public Forums » archive » Re: IDL/Dataminer/mySQL is working!!
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: IDL/Dataminer/mySQL is working!! [message #26380] Tue, 04 September 2001 01:31 Go to previous message
Olaf Stetzer is currently offline  Olaf Stetzer
Messages: 39
Registered: September 2001
Member
Randall Skelton schrieb:
>
> On Mon, 3 Sep 2001, Olaf Stetzer wrote:
>
> [snip]
>> I _love_ open source software!!! :-)
> [snip]
>
> Here, here!
>

I am a Linux-addict since Kernel 0.94pl16!!!!! :-)

> [snip]
>> I still have to think of an elegant way to convert the struct
>> SQL-Timestamp into a variable which ca be used to be plotted against....

I just mixed together some code of different time-conversion functions I
found
in the icg-library. The result is:

function sqlts2js, sqlts

s =
sqlts.second+(sqlts.minute*60)+(sqlts.hour*3600d0)+sqlts.fra ction/1000d0

jd = 367*sqlts.year-7*(sqlts.year+(sqlts.month+9)/12)/4 $
-3*((sqlts.year+(sqlts.month-9)/7)/100+1)/4 $
+275*sqlts.month/9+sqlts.day+1721029

RETURN, s + (jd-2451545)*86400d0
end

What do you think of this one?

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
Previous Topic: Re: Could i find some examples for IDL DataMiner ...?
Next Topic: Call_external

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

Current Time: Thu Oct 09 22:45:07 PDT 2025

Total time taken to generate the page: 0.23989 seconds