- Documentation
- Server functions
- getResourceLastStartTime
Function
getResourceLastStartTime
Returns when the resource last started (seconds since 1970) or 0. In the current server version it always returns 0.
Syntax
int getResourceLastStartTime(resource theResource)Arguments
theResourceresource- The resource.
Returns
The start time or 0.
Example
outputServerLog("Start: " .. getResourceLastStartTime(getThisResource()))
See also
getResourceLoadTimeReturns how many milliseconds the last resource load took. In the current server version it returnsfalse.getRealTimeReturns the real date and time of the server (or the player's computer) as a table:second,minute,hour,monthday,month(0-11),year(years since 1900),weekday(0 = Sunday),yearday,isdstandtimestamp. With an argument it breaks down the given timestamp.