From e3a583f4b45e6497d21417e9c86f3faceeba0130 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 3 Jul 2008 14:25:43 +0000 Subject: Mantis#1653. Thank you kindly, Vytek for a patch that: Implements llGetTimeOfDay(). --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f521630..d540e13 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -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() -- cgit v1.1