File.created read/write property



The File.created property set or get a Datetime value indicating when the file has been created. The file must exist physically on the disk.

If the file do not exist, this property returnsniland setting its value will have no effect.

Example

local file = sys.File(sys.env["windir"].."\\win.ini") print("Operating system was installed on "..file.created)