GetResourceLastStartTime: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">string getResourceLastStartTime ( resource theResource )</syntaxhighlight> | {{New feature|3|1.0 r840| | ||
<syntaxhighlight lang="lua"> | |||
int getResourceLastStartTime ( resource theResource ) | |||
</syntaxhighlight> | |||
}} | |||
{{Deprecated_feature|3|1.0| | |||
<syntaxhighlight lang="lua"> | |||
string getResourceLastStartTime ( resource theResource ) | |||
</syntaxhighlight> | |||
}} | |||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 12:00, 21 May 2009
Used to check the last starting time and date of a function
Syntax
int getResourceLastStartTime ( resource theResource )
Required Arguments
- theResource: The resource of which you'd like to check the last starting time and date.
Returns
Returns seconds from last start.
Example
This function outputs to chatbox when the current resource was started.
function whenStarted() local startTime = getResourceLastStartTime ( getThisResource() ) --Get the time and date outputChatBox( "This resource was started on: " .. startTime ) --tell everybody when the current resource was started. end
See Also
- abortRemoteRequest
- call
- fetchRemote
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceName
- getResourceRootElement
- getResourceState
- getThisResource
- getRemoteRequests
- getRemoteRequestInfo