OsGetApparentTimeString: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Ubit Created page with "{{osslfunc |threat_level=ignored |permissions=true |delay=0 |function_syntax=string (integer format24) |ossl_example=<source lang="lsl"> // //osGetApparentTimeString() example..." |
imported>Manni No edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
|permissions=true | |permissions=true | ||
|delay=0 | |delay=0 | ||
|function_syntax=string (integer format24) | |function_syntax=string osGetApparentTimeString(integer format24) | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
// | // | ||
| Line 16: | Line 16: | ||
} | } | ||
</source> | </source> | ||
|description= | |description=Returns a string with current parcel sun hour. | ||
Will use 12 or 24 hour format if format24 is 0 or 1, respectible. | |||
If parcel does not have own evironment, region hour is returned. | |||
| | | | ||
|additional_info=Added in 0.9.2 | |additional_info=Added in 0.9.2 | ||
}} | }} | ||
Latest revision as of 08:00, 4 January 2021
string osGetApparentTimeString(integer format24)
| |
| Returns a string with current parcel sun hour.
Will use 12 or 24 hour format if format24 is 0 or 1, respectible. If parcel does not have own evironment, region hour is returned. | |
| Threat Level | This function does not do a threat level check |
| Permissions | Use of this function is always allowed by default |
| Extra Delay | 0 seconds |
| Example(s) | |
//
//osGetApparentTimeString() example
//
default
{
state_entry()
{
llSay(0, "Current Apparent Sun Hour: "+ osGetApparentTimeString(1));
}
}
| |
| Notes | |
| Added in 0.9.2 | |