llGetTimeOfDay
LSLfloat llGetTimeOfDay()
Returns the time in seconds since Second Life midnight or since region up-time, whichever is smaller.\ The Second Life day cycle is 4 hours.
Takes no parameters.
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.