Difference between revisions of "LlGetUnixTime"
Jump to navigation
Jump to search
(EX) |
Void Singer (talk | contribs) m (formatted example) |
||
Line 8: | Line 8: | ||
|caveats=*{{Wikipedia|Year_2038_problem}} | |caveats=*{{Wikipedia|Year_2038_problem}} | ||
|constants | |constants | ||
|examples=< | |examples=<lsl> | ||
// Reset tracker | // Reset tracker | ||
integer BOOT_TIME; | integer BOOT_TIME; | ||
Line 25: | Line 25: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 19:56, 19 February 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetUnixTime( );0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC from the system clock.
Caveats
Examples
<lsl> // Reset tracker integer BOOT_TIME; default {
state_entry() { BOOT_TIME = llGetUnixTime(); llSetTimerEvent(0.1); } timer() { llSetText((string)(llGetUnixTime() - BOOT_TIME) + " Seconds since boot.\n\n ", <1,0,0>, 1.0); llSetTimerEvent(1); }
}
</lsl>