Difference between revisions of "LlGetGMTclock"
Jump to navigation
Jump to search
(added example) |
m |
||
Line 2: | Line 2: | ||
|func_id=282|func_sleep=0.0|func_energy=10.0 | |func_id=282|func_sleep=0.0|func_energy=10.0 | ||
|func=llGetGMTclock|return_type=float | |func=llGetGMTclock|return_type=float | ||
|func_footnote=For | |func_footnote=For SL time, which is the same as California time, use [[llGetWallclock]] | ||
|func_desc | |func_desc | ||
|return_text=that is the time in seconds since midnight GMT. Seems to be accurate to the millisecond. | |return_text=that is the time in seconds since midnight GMT. Seems to be accurate to the millisecond. |
Revision as of 13:13, 28 April 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llGetGMTclock( );282 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the time in seconds since midnight GMT. Seems to be accurate to the millisecond.
For SL time, which is the same as California time, use llGetWallclock
Caveats
Examples
// Gets the number of milliseconds since midnight UTC. integer GetGMTmsclock() { string stamp = llGetTimestamp(); return (integer) llGetSubString(stamp, 11, 12) * 3600000 + (integer) llGetSubString(stamp, 14, 15) * 60000 + llRound((float) llGetSubString(stamp, 17, -2) * 1000.0); }
See Also
Functions
• | llGetWallclock | – | Seconds since midnight PST |