From 52b8cfc606f7afae9fd888c90bd6c7e753ac3ea6 Mon Sep 17 00:00:00 2001 From: Joohyun Kim Date: Sat, 17 Aug 2013 09:18:38 +0900 Subject: [PATCH] Add log on time function Change-Id: Ifd1c6dc016220908e761aab97cd6b39b03dcd4bc Signed-off-by: Joohyun Kim --- src/system/FSys_SystemTimeImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/FSys_SystemTimeImpl.cpp b/src/system/FSys_SystemTimeImpl.cpp index accfdb9..3109958 100644 --- a/src/system/FSys_SystemTimeImpl.cpp +++ b/src/system/FSys_SystemTimeImpl.cpp @@ -82,10 +82,12 @@ _SystemTimeImpl::GetCurrentTime(TimeMode timeMode, DateTime& currentTime) _LocaleManagerImpl* plm = null; time(&currTime); + SysLog(NID_SYS, "Current Epoch is %lld.", currTime); gettimeofday(¤tTimeVal, null); pGmTime = gmtime(&currTime); SysTryReturnResult(NID_SYS, null != pGmTime, E_SYSTEM, "Failed to convert the time value to UTC time"); + SysLog(NID_SYS, "Calendar time is sec:%d, min:%d, hour:%d, day:%d, mon:%d, year:%d, wday%d, year:%d, dst:%d", pGmTime->tm_sec, pGmTime->tm_min, pGmTime->tm_hour, pGmTime->tm_mday, pGmTime->tm_mon, pGmTime->tm_year, pGmTime->tm_wday, pGmTime->tm_yday, pGmTime->tm_isdst); plm = new (std::nothrow) _LocaleManagerImpl(); SysTryReturnResult(NID_SYS, null != plm, E_SYSTEM, "_LocaleManagerImpl instance must not be null"); -- 2.7.4