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

Home » Public Forums » archive » Re: Time convertion
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: Time convertion [message #24256 is a reply to message #24127] Mon, 19 March 2001 13:12 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
"Liam E. Gumley" wrote:
>
> Alex Schuster wrote:
>> I have to convert some date formats, and I wonder why IDL does not give
>> more support here. A common date/time format is the seconds since 1970,
>> and the systime() funtion can return the current date in this format.
>> Yippie! But why is there no function to convert this from/to standard
>> ASCII date strings, or from/to Julian date?
>>
>> I found such a thing in the Astro library, st2date, input is the
>> seconds-since-1970, output is year, month, day etc., and even day and
>> month in ASCII notation if one likes. Great. But I did not find
>> something yet to convert to seconds-since-1970. I could write it myself,
>> but I guess this already had be done some dozen times. Some big routine
>> with many, many keywords to convert between all those formats would be
>> nice :)
>
> http://fermi.jhuapl.edu/s1r/idl/s1rlib/time/time.html

and here are some more julian seconds routines


http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/string2js.tar.gz
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/js2string.tar.gz


There are many formats defined

e.g.:
; FORMAT: string to format the output:
; 'ICG' = 'Y-M-D H:M:S MS'
; 'XLS' = 'D.M.Y H:M:S'
; 'M-D'
; 'H:M'
; 'H:M:S'
; 'Y-M-D'
; 'M-D-Y'
; 'YMDHMS'


For further routines and licensing please look at
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml




regards

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
=============================================
a IDL library at ForschungsZentrum J�lich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AD&D site / sito AD&D
Next Topic: Time convertion

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

Current Time: Fri Oct 10 08:40:42 PDT 2025

Total time taken to generate the page: 0.40145 seconds