The [file->modificationDate] method returns the date and time when the file was last modified as a Lasso [date] type.
local(f) = file(...)
#f->modificationDate
The code below displays the date and time the file was last modified in the standard USA format of mm/dd/yyyy hh:mm:ss.
Code
local(styles) = file('/css/style.css')
#styles->modificationDate->format('%-D %r')
Result
12/2/2010 11:04:15 PM
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments