aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorCharles Krinke2008-07-03 14:25:43 +0000
committerCharles Krinke2008-07-03 14:25:43 +0000
commite3a583f4b45e6497d21417e9c86f3faceeba0130 (patch)
treefaeb0d8d0fb21c34bc0d9514abbd52a51e642a48 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentUpdate svn properties. (diff)
downloadopensim-SC_OLD-e3a583f4b45e6497d21417e9c86f3faceeba0130.zip
opensim-SC_OLD-e3a583f4b45e6497d21417e9c86f3faceeba0130.tar.gz
opensim-SC_OLD-e3a583f4b45e6497d21417e9c86f3faceeba0130.tar.bz2
opensim-SC_OLD-e3a583f4b45e6497d21417e9c86f3faceeba0130.tar.xz
Mantis#1653. Thank you kindly, Vytek for a patch that:
Implements llGetTimeOfDay().
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3
1 files changed, 1 insertions, 2 deletions
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
1393 public double llGetTimeOfDay() 1393 public double llGetTimeOfDay()
1394 { 1394 {
1395 m_host.AddScriptLPS(1); 1395 m_host.AddScriptLPS(1);
1396 NotImplemented("llGetTimeOfDay"); 1396 return (double) (((DateTime.Now.TimeOfDay.Milliseconds / 1000) % (3600*4))*World.TimeDilation);
1397 return 0;
1398 } 1397 }
1399 1398
1400 public double llGetWallclock() 1399 public double llGetWallclock()