Add implementation of llGetTimeOfDay()
parent
8465f378ac
commit
fdbf0c39d2
|
@ -1542,8 +1542,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
public double llGetTimeOfDay()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetTimeOfDay");
|
||||
return 0;
|
||||
return (double)(((DateTime.Now.TimeOfDay.Milliseconds / 1000) % (3600 * 4)) * World.TimeDilation);
|
||||
}
|
||||
|
||||
public double llGetWallclock()
|
||||
|
|
Loading…
Reference in New Issue