{{deprecatedin|[[11.0]]|110|type=function|text=This function is deprecated and is replaced by [[love.filesystem.getInfo]]}}
Gets the last modification time of a file.
== Function ==
=== Synopsis ===
<source lang="lua">
modtime, errormsg = love.filesystem.getLastModified( filename )
</source>
=== Arguments ===
{{param|string|filename|The path and name to a file.}}
=== Returns ===
{{param|number|modtime|The last modification time in seconds since the unix epoch or nil on failure.}}
{{param|string|errormsg|The error message on failure.}}
== Examples ==
=== Getting the time of a file and printing it as a date. ===
<source lang="lua">
modtime, errormsg = love.filesystem.getLastModified("file.dat")

if modtime then
	print(os.date("%c", modtime)) -- "02/15/2011 12:32:11" (Depends on the system and locale)
end
</source>
== See Also ==
* [[parent::love.filesystem]]
[[Category:Functions]]
{{#set:Description=Gets the last modification time of a file.}}
{{#set:Since=071}}
{{#set:PrettySince=0.7.1}}
== Other Languages ==
{{i18n|love.filesystem.getLastModified}}