file.Time

From GMod Wiki

Jump to: navigation, search
Function
Syntax file.Time( String filename, [ Boolean usebasefolder ] )
Where is this used?
Description:
Date of a specified file
Returns: Number
Part of Library: File
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=File.Time]File.Time [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the date of when the file "test.txt" was made. (in the garrysmod/data folder)
Used onNewerShared.png
Code
MsgN( tostring( os.date( "%c", file.Time( "text.txt" ) ) ) )
OutputA date + time.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox