Difference between revisions of "love.filesystem.getLastModified"
m (Welp ... didn't work) |
m (Changed version number from 0.11.0 to 11.0) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{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. | Gets the last modification time of a file. | ||
== Function == | == Function == | ||
Line 24: | Line 24: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Gets the last modification time of a file.}} | {{#set:Description=Gets the last modification time of a file.}} | ||
+ | {{#set:Since=071}} | ||
+ | {{#set:PrettySince=0.7.1}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|love.filesystem.getLastModified}} | {{i18n|love.filesystem.getLastModified}} |
Latest revision as of 18:25, 3 April 2018
Deprecated in LÖVE 11.0 |
This function is deprecated and is replaced by love.filesystem.getInfo. |
Gets the last modification time of a file.
Contents
Function
Synopsis
modtime, errormsg = love.filesystem.getLastModified( filename )
Arguments
string filename
- The path and name to a file.
Returns
number modtime
- The last modification time in seconds since the unix epoch or nil on failure.
string errormsg
- The error message on failure.
Examples
Getting the time of a file and printing it as a date.
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
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info