From fdbf0c39d28cb37dda0cb07c17d461fab68b554c Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 5 Jul 2008 16:46:03 +0000 Subject: Add implementation of llGetTimeOfDay() --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 5016cd5..2d858dc 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -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() -- cgit v1.1