Time
Read clocks, dates, timestamps, and script timers.
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
Badges
Kind
string llGetDate()Returns a string representing the current date in the UTC time zone in the format 'YYYY-MM-DD'.functioninteger llGetDayLength()Returns an integer representing the number of seconds in the environmental day cycle applied to the current parcel.functioninteger llGetDayOffset()Returns an integer representing the offset duration (in seconds) added to calculate the current environmental time on this parcel.functionfloat llGetGMTclock()Returns a float representing the time in seconds since midnight GMT (truncated to whole seconds).functioninteger llGetRegionDayLength()Returns an integer representing the total number of seconds in the region-wide day cycle.functioninteger llGetRegionDayOffset()Returns an integer representing the offset duration (in seconds) added to calculate the current environmental time for the region.functionfloat llGetRegionTimeOfDay()Returns 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.functionfloat llGetTimeOfDay()Returns 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.functionstring 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').functioninteger llGetUnixTime()Returns an integer representing the current Unix timestamp (the number of seconds elapsed since 00:00:00 Jan 1, 1970 UTC).functionfloat llGetWallclock()Returns 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.functionllSetTimerEvent(float sec)Sets a timer to trigger a timer event periodically every sec seconds. Passing 0.0 stops further timer events.function!SL (Not available in SLua)llSleep(float sec)Puts 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.functiontimer()Triggered at regular periodic intervals configured byllSetTimerEvent.event
No matching entries. Try a different term or filter.