From: Hokwon Song Date: Thu, 28 Mar 2013 00:16:33 +0000 (+0900) Subject: Support millisecond of DateTime in Calendar X-Git-Tag: accepted/tizen_2.1/20130425.034849~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06fd10154d6738bfa97fe0abc9cd6034855d2125;p=platform%2Fframework%2Fnative%2Fappfw.git Support millisecond of DateTime in Calendar Change-Id: I5d79cfef38ddd6c52e863a00eb5bba04b085862a Signed-off-by: Hokwon Song --- diff --git a/src/locales/FLcl_CalendarImpl.cpp b/src/locales/FLcl_CalendarImpl.cpp index 2c55ae3..9fea8c1 100644 --- a/src/locales/FLcl_CalendarImpl.cpp +++ b/src/locales/FLcl_CalendarImpl.cpp @@ -414,9 +414,10 @@ _CalendarImpl::GetTimeImpl(void) const int hour = __pCalendar->GetTimeField(TIME_FIELD_HOUR_OF_DAY); int minute = __pCalendar->GetTimeField(TIME_FIELD_MINUTE); int second = __pCalendar->GetTimeField(TIME_FIELD_SECOND); + int millisec = __pCalendar->GetTimeField(TIME_FIELD_MILLISECOND); DateTime dateTime; - result r = dateTime.SetValue(year, month, date, hour, minute, second); + result r = dateTime.SetValue(year, month, date, hour, minute, second, millisec); SysTryReturn(NID_LCL, r == E_SUCCESS, DateTime(), r, "[%s] Unable to set time in DateTime object", GetErrorMessage(r)); return dateTime;