• Home
  • Raw
  • Download

Lines Matching full:year

95 #define kJan1_1JulianDay  1721426 // January 1, year 1 (Gregorian)
140 * Return TRUE if the given year is a leap year.
141 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
142 * @return TRUE if the year is a leap year
144 static inline UBool isLeapYear(int32_t year);
148 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
152 static inline int8_t monthLength(int32_t year, int32_t month);
156 * @param y the extended year
163 * Convert a year, month, and day-of-month, given in the proleptic
165 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
170 static double fieldsToDay(int32_t year, int32_t month, int32_t dom);
173 * Convert a 1970-epoch day number to proleptic Gregorian year,
176 * @param year output parameter to receive year
180 * @param doy output parameter to receive day-of-year (1-based)
182 static void dayToFields(double day, int32_t& year, int32_t& month,
186 * Convert a 1970-epoch day number to proleptic Gregorian year,
189 * @param year output parameter to receive year
194 static inline void dayToFields(double day, int32_t& year, int32_t& month,
198 * Convert a 1970-epoch milliseconds to proleptic Gregorian year,
199 * month, day-of-month, and day-of-week, day of year and millis-in-day.
201 * @param year output parameter to receive year
205 * @param doy output parameter to receive day-of-year (1-based)
208 static void timeToFields(UDate time, int32_t& year, int32_t& month,
221 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
226 static int32_t dayOfWeekInMonth(int32_t year, int32_t month, int32_t dom);
245 * Calculates the Gregorian day shift value for an extended year.
246 * @param eyear Extended year
260 inline UBool Grego::isLeapYear(int32_t year) { in isLeapYear() argument
261 // year&0x3 == year%4 in isLeapYear()
262 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); in isLeapYear()
266 Grego::monthLength(int32_t year, int32_t month) { in monthLength() argument
267 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
275 inline void Grego::dayToFields(double day, int32_t& year, int32_t& month, in dayToFields() argument
278 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()