Home | History | Annotate | Download | only in i18n

Lines Matching refs:month

38 static UBool isValidRuleStartDate(int32_t year, int32_t month, int32_t day) {
40 && month >= 1 && month <= 12 && day >=1 && day <= 31;
44 * Encode year/month/date to a single integer.
45 * year is high 16 bits (-32768 to 32767), month is
46 * next 8 bits and day of month is last 8 bits.
49 * @param month month (1-base)
50 * @param day day of month
53 static int32_t encodeDate(int32_t year, int32_t month, int32_t day) {
54 return year << 16 | month << 8 | day;
70 * Compare an encoded date with another date specified by year/month/day.
73 * @param month Month of another date
78 static int32_t compareEncodedDateWithYMD(int encoded, int year, int month, int day) {
81 if (year > MIN_INT32 || month > 1 || day > 1) {
91 int tmp = encodeDate(year, month, day);
258 int32_t EraRules::getEraIndex(int32_t year, int32_t month, int32_t day, UErrorCode& status) const {
263 if (month < 1 || month > 12 || day < 1 || day > 31) {
272 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) {
281 if (compareEncodedDateWithYMD(startDates[i], year, month, day) <= 0) {