OsGetPSTWallclock
From OpenSimulator
(Difference between revisions)
												
			m (Add See Also)  | 
			|||
| Line 4: | Line 4: | ||
|delay=0  | |delay=0  | ||
|function_syntax=float osGetPSTWallclock()  | |function_syntax=float osGetPSTWallclock()  | ||
| + | |description=returns the current PST or PDT time in seconds since midnight  | ||
|ossl_example=  | |ossl_example=  | ||
<source lang = "lsl">  | <source lang = "lsl">  | ||
| Line 15: | Line 16: | ||
}  | }  | ||
</source>  | </source>  | ||
| − | |||
|additional_info=This is replacement for llGetWallclock for those who need PST/PDT time, since llGetWallClock() returns the region  machine local time. Note also that this functions do return a fractional part. Use llRound() to get integer seconds  | |additional_info=This is replacement for llGetWallclock for those who need PST/PDT time, since llGetWallClock() returns the region  machine local time. Note also that this functions do return a fractional part. Use llRound() to get integer seconds  | ||
added 2019, April 8  | added 2019, April 8  | ||
}}  | }}  | ||
| + | '''See Also:'''  | ||
| + | * [[osGetPSTWallclock]]  | ||
| + | * [[osUnixTimeToTimestamp]]  | ||
Revision as of 15:06, 3 December 2020
float osGetPSTWallclock()
 
 | |
| returns the current PST or PDT time in seconds since midnight | |
| Threat Level | No threat level specified | 
| Permissions | No permissions specified | 
| Extra Delay | 0 seconds | 
| Example(s) | |
// Example of osGetPSTWallclock default { state_entry() { llSay(0, "started at at " + (string)osGetPSTWallclock()); } }  | |
| Notes | |
| This is replacement for llGetWallclock for those who need PST/PDT time, since llGetWallClock() returns the region  machine local time. Note also that this functions do return a fractional part. Use llRound() to get integer seconds
 added 2019, April 8  | |
See Also:
- osGetPSTWallclock
 - osUnixTimeToTimestamp