[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time convertion





"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.html




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.html

http://www.fz-juelich.de/zb/text/publikation/juel3786.html