file date [message #10348] |
Tue, 18 November 1997 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Hi,
is there any way to figure out the modification date of a given file in
IDL ? I searched the manual but couldn't find anything. Unfortunately
there is no such field in FSTAT. What I am trying to do is put together
a small utitlity which would perform semi-automatic updates of my
website library. Has anyone done such things before ?
Reg's,
Martin.
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
186 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA
phone: (617)-496-8318
fax : (617)-495-4551
e-mail: mgs@io.harvard.edu
IDL-homepage: http://www-as.harvard.edu/people/staff/mgs/idl/
------------------------------------------------------------ -------
|
|
|
|
Re: file date [message #29521 is a reply to message #10348] |
Thu, 28 February 2002 02:31  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Miguel �ngel C�rdoba wrote:
>
> Hi,
> how can I get the date of a file in IDL 5.4?
>
> Thanx.
>
> --
> ------------------------------------------------------
> Miguel �ngel C�rdoba
> http://campus.uab.es/~2034008
>
> Grup de Recerca Aplicada en Hidrometeorol�gia (UPC)
> http://www.upc.es/ehma/gmh
> ------------------------------------------------------
Dear Miquel,
openr,lun,file,/get_lun
x=fstat(lun)
help,x,/str
free_lun,lun
online Help of fstat says:
ATIME, CTIME, MTIME � The date of last access, date of creation, and
date of last modification given in seconds since 1 January 1970 UTC. Use
the SYSTIME function to convert these dates into a textual
representation.
regards
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
|
|
|