Time
Read clocks, dates, timestamps, and script timers.
Feature: Time
What do you want to do?
string llGetTimestamp()Returns a string containing the current date and time in the UTC time zone formatted as an ISO 8601 timestamp ('YYYY-MM-DDThh:mm:ss.ff..fZ').integer llGetUnixTime()Returns an integer representing the current Unix timestamp (the number of seconds elapsed since 00:00:00 Jan 1, 1970 UTC).llSetTimerEvent(float sec)Sets a timer to trigger a timer event periodically every sec seconds. Passing 0.0 stops further timer events.Reference
14 topic entries
string llGetDate()functionReturns a string representing the current date in the UTC time zone in the format 'YYYY-MM-DD'.
integer llGetDayLength()functionReturns an integer representing the number of seconds in the environmental day cycle applied to the current parcel.
integer llGetDayOffset()functionReturns an integer representing the offset duration (in seconds) added to calculate the current environmental time on this parcel.
float llGetGMTclock()functionReturns a float representing the time in seconds since midnight GMT (truncated to whole seconds).
integer llGetRegionDayLength()functionReturns an integer representing the total number of seconds in the region-wide day cycle.
integer llGetRegionDayOffset()functionReturns an integer representing the offset duration (in seconds) added to calculate the current environmental time for the region.
float llGetRegionTimeOfDay()functionReturns a float with subsecond precision representing the elapsed seconds since region environmental midnight or region uptime (whichever is smaller). If the region's sun position is fixed, returns region uptime.
float llGetTimeOfDay()functionReturns a float with subsecond precision representing the elapsed seconds since parcel environmental midnight or region uptime (whichever is smaller). If the parcel's sun position is fixed, returns region uptime.
string llGetTimestamp()functionReturns a string containing the current date and time in the UTC time zone formatted as an ISO 8601 timestamp ('YYYY-MM-DDThh:mm:ss.ff..fZ').
integer llGetUnixTime()functionReturns an integer representing the current Unix timestamp (the number of seconds elapsed since 00:00:00 Jan 1, 1970 UTC).
float llGetWallclock()functionReturns a float representing the time in seconds since midnight Pacific Time (PST/PDT), which is equivalent to Second Life Time (SLT) truncated to whole seconds.
llSetTimerEvent(float sec)functionSets a timer to trigger a timer event periodically every sec seconds. Passing 0.0 stops further timer events.
llSleep(float sec)functionPuts the script to sleep for sec seconds (at least until the next server-frame, ~0.02222 seconds). The script is inactive during this time. If sec is 0.0 or less, the script does not sleep.
timer()eventTriggered at regular periodic intervals configured by
llSetTimerEvent.
No matching entries. Try a different term or filter.