Lines Matching defs:year
493 bool IsLeapYear(uint32_t year)
495 return (year % NUM_4 == 0 && year % NUM_100 != 0) || (year % NUM_400 == 0);
498 bool IsValidDate(uint32_t year, uint32_t month, uint32_t day)
500 if (year <= 0) {
506 uint32_t daysInMonth[] = { 31, IsLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
7668 auto year = StringToInt(date[NUM_0].c_str(), DATEPICKER_START_TIME);
7671 fullImpl->getNodeModifiers()->getDatePickerModifier()->setStartDate(node->uiNodeHandle, year, month, day);
7703 auto year = StringToInt(date[NUM_0].c_str(), DATEPICKER_END_TIME);
7706 fullImpl->getNodeModifiers()->getDatePickerModifier()->setEndDate(node->uiNodeHandle, year, month, day);
7738 auto year = StringToInt(date[NUM_0].c_str());
7741 fullImpl->getNodeModifiers()->getDatePickerModifier()->setSelectedDate(node->uiNodeHandle, year, month, day);
10143 g_numberValues[SELECTED_YEAR_INDEX].u32 = selectedDate.year;