OsGetApparentTime

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{osslfunc |threat_level=ignored |permissions=true |delay=0 |function_syntax=float osGetApparentTime() |ossl_example=<source lang="lsl"> // //osGetCurrentSunHour() example, by...")
 
 
(2 intermediate revisions by one user not shown)
Line 12: Line 12:
 
     state_entry()
 
     state_entry()
 
     {
 
     {
         llSay(0, "Current Apparent SUnTime: "+(string)osGetCurrentSunHour());
+
         llSay(0, "Current Apparent SunTime: "+(string)osGetApparentTime());
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
|description=Identical to osGetCurrentSunHour but returns time in seconds since midnight.
+
|description=Returns parcel time in seconds since midnight. If parcel does not have own enviroment, region time is returned
 
|
 
|
 +
|additional_info=Added in 0.9.2
 
}}
 
}}

Latest revision as of 12:30, 3 July 2020

float osGetApparentTime()
Returns parcel time in seconds since midnight. If parcel does not have own enviroment, region time 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)
//
//osGetCurrentSunHour() example, by Tom Earth.
//
default
{
    state_entry()
    {
        llSay(0, "Current Apparent SunTime: "+(string)osGetApparentTime());
    }
}
Notes
Added in 0.9.2


Personal tools
General
About This Wiki