Skip to content

Read clocks, dates, timestamps, and script timers.

What do you want to do?

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'.function
  • integer llGetDayLength()Returns an integer representing the number of seconds in the environmental day cycle applied to the current parcel.function
  • integer llGetDayOffset()Returns an integer representing the offset duration (in seconds) added to calculate the current environmental time on this parcel.function
  • float llGetGMTclock()Returns a float representing the time in seconds since midnight GMT (truncated to whole seconds).function
  • integer llGetRegionDayLength()Returns an integer representing the total number of seconds in the region-wide day cycle.function
  • integer llGetRegionDayOffset()Returns an integer representing the offset duration (in seconds) added to calculate the current environmental time for the region.function
  • float 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.function
  • float 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.function
  • 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').function
  • integer llGetUnixTime()Returns an integer representing the current Unix timestamp (the number of seconds elapsed since 00:00:00 Jan 1, 1970 UTC).function
  • float 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.function
  • llSetTimerEvent(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.function
  • timer()Triggered at regular periodic intervals configured by llSetTimerEvent.event