Mantis#1653. Thank you kindly, Vytek for a patch that:

Implements llGetTimeOfDay().
0.6.0-stable
Charles Krinke 2008-07-03 14:25:43 +00:00
parent fde6983cce
commit e3a583f4b4
1 changed files with 1 additions and 2 deletions

View File

@ -1393,8 +1393,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public double llGetTimeOfDay() public double llGetTimeOfDay()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
NotImplemented("llGetTimeOfDay"); return (double) (((DateTime.Now.TimeOfDay.Milliseconds / 1000) % (3600*4))*World.TimeDilation);
return 0;
} }
public double llGetWallclock() public double llGetWallclock()