2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FSysSystemTime.cpp
19 * @brief This is the implementation file for SystemTime class.
22 #include <sys/sysinfo.h>
26 #include <FBaseDateTime.h>
27 #include <FBaseResult.h>
29 #include <FBaseSysLog.h>
30 #include <FSys_SystemTimeImpl.h>
32 using namespace Tizen::Base;
33 using namespace Tizen::Locales;
34 namespace Tizen { namespace System
37 SystemTime::SystemTime(void)
38 :__pSystemTimeImpl(null)
42 SystemTime::~SystemTime(void)
47 SystemTime::GetUptime(TimeSpan& uptime)
49 return _SystemTimeImpl::GetUptime(uptime);
53 SystemTime::GetCurrentTime(TimeMode timeMode, DateTime& currentTime)
55 return _SystemTimeImpl::GetCurrentTime(timeMode, currentTime);
59 SystemTime::GetCurrentTime(DateTime& currentTime)
61 return _SystemTimeImpl::GetCurrentTime(currentTime);
65 SystemTime::GetTicks(long long& ticks)
67 return _SystemTimeImpl::GetTicks(ticks);
71 SystemTime::SetCurrentTime(const DateTime& currentTime)
73 return _SystemTimeImpl::SetCurrentTime(currentTime);