2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FSysSystemTime.cpp
20 * @brief This is the implementation file for SystemTime class.
23 #include <sys/sysinfo.h>
27 #include <FBaseDateTime.h>
28 #include <FBaseResult.h>
30 #include <FBaseSysLog.h>
31 #include <FSys_SystemTimeImpl.h>
33 using namespace Tizen::Base;
34 using namespace Tizen::Locales;
35 namespace Tizen { namespace System
38 SystemTime::SystemTime(void)
39 :__pSystemTimeImpl(null)
43 SystemTime::~SystemTime(void)
48 SystemTime::GetUptime(TimeSpan& uptime)
50 return _SystemTimeImpl::GetUptime(uptime);
54 SystemTime::GetCurrentTime(TimeMode timeMode, DateTime& currentTime)
56 return _SystemTimeImpl::GetCurrentTime(timeMode, currentTime);
60 SystemTime::GetCurrentTime(DateTime& currentTime)
62 return _SystemTimeImpl::GetCurrentTime(currentTime);
66 SystemTime::GetTicks(long long& ticks)
68 return _SystemTimeImpl::GetTicks(ticks);
72 SystemTime::SetCurrentTime(const DateTime& currentTime)
74 return _SystemTimeImpl::SetCurrentTime(currentTime);