diff options
author | Charles Krinke | 2008-07-03 14:25:43 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-03 14:25:43 +0000 |
commit | e3a583f4b45e6497d21417e9c86f3faceeba0130 (patch) | |
tree | faeb0d8d0fb21c34bc0d9514abbd52a51e642a48 | |
parent | Update svn properties. (diff) | |
download | opensim-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().
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 |
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() |