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

Home » Public Forums » archive » file date
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
file date [message #10348] Tue, 18 November 1997 00:00 Go to next message
Martin Schultz is currently offline  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 #23864 is a reply to message #10348] Thu, 22 February 2001 09:28 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Thierry Wannier wrote:
>
> Any "simple" way to read the creation date of a file with IDL?
> Thanks: T.

Since idl5.4 this is implemented to the fstat function

regards
Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
Re: file date [message #29521 is a reply to message #10348] Thu, 28 February 2002 02:31 Go to previous message
R.Bauer is currently offline  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
============================================================ =======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: voxel_proj and seg fault
Next Topic: Satellite orbit procedure

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

Current Time: Fri Oct 10 14:29:25 PDT 2025

Total time taken to generate the page: 1.68367 seconds