summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
diff options
context:
space:
mode:
authorvishal <vishal@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 18:20:33 +0000
committervishal <vishal@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 18:20:33 +0000
commitd7e7665fcdfa48ad6b1737c52c7a505b757886b7 (patch)
tree2d0405834d17b0c4669290518f950abd501c5bc1 /TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
parent9cf5a86522bd7d638fd5273bfb25999963c0b0ec (diff)
downloadATCD-d7e7665fcdfa48ad6b1737c52c7a505b757886b7.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
index c4e3ffe3b0a..f957b80b77d 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
@@ -41,11 +41,11 @@ TAO_Time_Service_Clerk::universal_time (CORBA::Environment &TAO_IN_ENV)
ACE_NEW_THROW_RETURN (uto,
TAO_UTO (this->get_time (),
0,
- 0),
+ this->time_displacement_factor ()),
CORBA::NO_MEMORY (CORBA::COMPLETED_NO),
CosTime::UTO::_nil ());
// Return the global time as a UTO.
-
+
return uto->_this ();
}
@@ -126,3 +126,22 @@ TAO_Time_Service_Clerk::get_time (void)
return time;
}
+
+// Returns the time displacement factor in minutes.
+// This is displacement from the GMT.
+CORBA::Short
+TAO_Time_Service_Clerk::time_displacement_factor (void)
+{
+ return time_displacement_factor_;
+}
+
+// Sets the TDF.
+void
+TAO_Time_Service_Clerk::time_displacement_factor (CORBA::Short tdf)
+{
+ this->time_displacement_factor_ = tdf;
+}
+
+
+
+