Skip to main content

[archive] Elapsed Days

  • August 14, 2008
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 13 August 2008]

Hello
Is there a command or routine that would allow me to find out the number of days that have elapsed since a file was created?

Thanks

1 reply

[Migrated content. Thread originally posted on 13 August 2008]

Hello
Is there a command or routine that would allow me to find out the number of days that have elapsed since a file was created?

Thanks
Take a look in the AcuGT Manuals for the following:

C$FILEINFO

Or if you want more information about the file:

C$LIST-DIRECTORY

This will get you the create date of the file, then look at the functions:

INTEGER-OF-DATE
DATE-OF-INTEGER

These will give you the date on the file and the current date represented as an integer or number of days so that you can subtract them to get the difference, i.e. the number of days since it's creation.

That should get you going in the correct direction.