Lasso Soft Inc. > Home

[ file->lastAccessTime ]


The [file->lastAccessTime] method returns the date and time when the file was last opened.

  • Syntax
local(f) = file(...)
  • Beginner

Display the date & time the file was last accessed

The code below displays the date and time the file was last opened in the standard USA format of mm/dd/yyyy hh:mm:ss.


local(styles) = file('/css/style.css')
date(#styles->lastAccessTime)->format('%-D %r')


2/8/2011 07:53:03 PM

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft