2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 FUiCtrl_DateTimeUtils.cpp
20 * @brief This is the implementation file for the _DateTimeUtils class.
23 #include <FBaseDateTime.h>
24 #include "FUiCtrl_DateTimeUtils.h"
25 #include "FUi_ResourceManager.h"
27 using namespace Tizen::Base;
29 namespace Tizen { namespace Ui { namespace Controls
32 _DateTimeUtils::~_DateTimeUtils(void)
36 _DateTimeUtils::_DateTimeUtils(void)
41 _DateTimeUtils::GetMonthString(int month) const
48 GET_STRING_CONFIG(IDS_COM_BODY_JAN, text);
52 GET_STRING_CONFIG(IDS_COM_BODY_FEB, text);
56 GET_STRING_CONFIG(IDS_COM_BODY_MAR, text);
60 GET_STRING_CONFIG(IDS_COM_BODY_APR, text);
64 GET_STRING_CONFIG(IDS_COM_BODY_MAY, text);
68 GET_STRING_CONFIG(IDS_COM_BODY_JUN, text);
72 GET_STRING_CONFIG(IDS_COM_BODY_JUL, text);
76 GET_STRING_CONFIG(IDS_COM_BODY_AUG, text);
80 GET_STRING_CONFIG(IDS_COM_BODY_SEP, text);
84 GET_STRING_CONFIG(IDS_COM_BODY_OCT, text);
88 GET_STRING_CONFIG(IDS_COM_BODY_NOV, text);
92 GET_STRING_CONFIG(IDS_COM_BODY_DEC, text);
102 _DateTimeUtils::CalculateMaxDay(int displayYear, int month) const
124 if (IsLeapYear(displayYear))
142 _DateTimeUtils::IsLeapYear(int year) const
144 return DateTime::IsLeapYear(year);
147 }}} // Tizen::Ui::Controls