llGetUnixTime

From Second Life Wiki
Revision as of 15:38, 17 May 2007 by Awsoonn Rawley (talk | contribs) (EX)
Jump to navigation Jump to search

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

// 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);
    }
}

Deep Notes

Tests

•  llGetUnixTime Conformance Test

Signature

function integer llGetUnixTime();