mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Mantis#1653. Thank you kindly, Vytek for a patch that:
Implements llGetTimeOfDay().
This commit is contained in:
@@ -1393,8 +1393,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
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