OsGetPSTWallclock: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Djphil m Remove empty line |
imported>Djphil m Change See Also |
||
| Line 27: | Line 27: | ||
added 2019, April 8 | added 2019, April 8 | ||
}} | }} | ||
== See Also == | |||
* [[osGetPSTWallclock]] | * [[osGetPSTWallclock]] | ||
* [[osUnixTimeToTimestamp]] | * [[osUnixTimeToTimestamp]] | ||
Latest revision as of 03:15, 6 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) | |
//
// osGetPSTWallclock Script Example
// Author: djphil
//
default
{
state_entry()
{
llSay(PUBLIC_CHANNEL, "Touch to hear osGetPSTWallclock running.");
}
touch_start(integer number)
{
llSay(PUBLIC_CHANNEL, "Clicked 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 | |