mirror of
https://github.com/opensim/opensim.git
synced 2026-07-21 07:05:39 +08:00
Add implementation of llGetTimeOfDay()
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user