file.Time
From GMod Wiki
Revision as of 16:46, 15 October 2011 by TheFreeman193 (Talk | contribs)
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=File.Time]File.Time [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the date of when the file "test.txt" was made. (in the garrysmod/data folder) |
---|---|
Used on | |
Code | MsgN( tostring( os.date( "%c", file.Time( "text.txt" ) ) ) ) |
Output | A date + time. |
Additional Notes
- Relative to garrysmod/data
- If usebasefolder is true then it starts relative to the GMod base folder (garrysmod/garrysmod).
- Should be formatted with os.date