Add implementation of llGetTimeOfDay()

0.6.0-stable
Charles Krinke 2008-07-05 16:46:03 +00:00
parent 8465f378ac
commit fdbf0c39d2
1 changed files with 1 additions and 2 deletions

View File

@ -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()