Difference between revisions of "LlGetUnixTime"

From Second Life Wiki
Jump to navigation Jump to search
m (formatted example)
m
Line 4: Line 4:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text=that is the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC from the system clock.
|return_text=that is the number of seconds elapsed since 00:00 hours, Jan 1, 1970 {{Wikipedia|Coordinated_Universal_Time|UTC}} from the system clock.
|spec
|spec
|caveats=*{{Wikipedia|Year_2038_problem}}
|caveats=*{{Wikipedia|Year_2038_problem}}

Revision as of 09:10, 7 June 2009

Summary

Function: integer llGetUnixTime( );

Returns an integer that is the number of seconds elapsed since 00:00 hours, Jan 1, 1970 "Wikipedia logo"UTC from the system clock.

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>

Deep Notes

Search JIRA for related Issues

Tests

•  llGetUnixTime Conformance Test

Signature

function integer llGetUnixTime();