Add log on time function
authorJoohyun Kim <joohyune.kim@samsung.com>
Sat, 17 Aug 2013 00:18:38 +0000 (09:18 +0900)
committerJoohyun Kim <joohyune.kim@samsung.com>
Sat, 17 Aug 2013 00:18:38 +0000 (09:18 +0900)
Change-Id: Ifd1c6dc016220908e761aab97cd6b39b03dcd4bc
Signed-off-by: Joohyun Kim <joohyune.kim@samsung.com>
src/system/FSys_SystemTimeImpl.cpp

index accfdb9..3109958 100644 (file)
@@ -82,10 +82,12 @@ _SystemTimeImpl::GetCurrentTime(TimeMode timeMode, DateTime& currentTime)
        _LocaleManagerImpl* plm = null;
 
        time(&currTime);
+       SysLog(NID_SYS, "Current Epoch is %lld.", currTime);
        gettimeofday(&currentTimeVal, 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");