Home
last modified time | relevance | path

Searched refs:isleap (Results 1 - 19 of 19) sorted by relevance

/third_party/icu/icu4c/source/tools/tzcode/
H A Dtzfile.h153 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
156 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
157 ** isleap(y) == isleap(y % 400)
159 ** isleap(a + b) == isleap((a + b) % 400)
161 ** isleap(a + b) == isleap(a % 400 + b % 400)
167 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dzdump.c137 #ifndef isleap
138 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
139 #endif /* !defined isleap */
145 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
699 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
715 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
H A Dlocaltime.c842 leapyear = isleap(year); in transtime()
1024 yearsecs = (year_lengths[isleap(year)] in tzparse()
1459 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) { in timesub()
1504 idays += year_lengths[isleap(y)]; in timesub()
1506 while (idays >= year_lengths[isleap(y)]) { in timesub()
1507 idays -= year_lengths[isleap(y)]; in timesub()
1535 ip = mon_lengths[isleap(y)]; in timesub()
1711 yourtm.tm_mday += year_lengths[isleap(li)]; in time2sub()
1715 yourtm.tm_mday -= year_lengths[isleap(li)]; in time2sub()
1720 i = mon_lengths[isleap( in time2sub()
[all...]
H A Dzic.c1297 i = len_years[isleap(j)]; in inleap()
1301 i = -len_years[isleap(j)]; in inleap()
1312 i = len_months[isleap(year)][j]; in inleap()
1318 day <= 0 || day > len_months[isleap(year)][month]) { in inleap()
2997 i = len_years[isleap(y)]; in rpytime()
3001 i = -len_years[isleap(y)]; in rpytime()
3006 i = len_months[isleap(y)][m]; in rpytime()
3011 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) { in rpytime()
3048 if (i < 0 || i >= len_months[isleap(y)][m]) { in rpytime()
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
H A Dtzfile.h153 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
156 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
157 ** isleap(y) == isleap(y % 400)
159 ** isleap(a + b) == isleap((a + b) % 400)
161 ** isleap(a + b) == isleap(a % 400 + b % 400)
167 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dzdump.c143 #ifndef isleap
144 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
145 #endif /* !defined isleap */
151 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
705 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
721 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
H A Dlocaltime.c840 leapyear = isleap(year); in transtime()
1022 yearsecs = (year_lengths[isleap(year)] in tzparse()
1457 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) { in timesub()
1502 idays += year_lengths[isleap(y)]; in timesub()
1504 while (idays >= year_lengths[isleap(y)]) { in timesub()
1505 idays -= year_lengths[isleap(y)]; in timesub()
1533 ip = mon_lengths[isleap(y)]; in timesub()
1709 yourtm.tm_mday += year_lengths[isleap(li)]; in time2sub()
1713 yourtm.tm_mday -= year_lengths[isleap(li)]; in time2sub()
1718 i = mon_lengths[isleap( in time2sub()
[all...]
H A Dzic.c1296 i = len_years[isleap(j)]; in inleap()
1300 i = -len_years[isleap(j)]; in inleap()
1311 i = len_months[isleap(year)][j]; in inleap()
1317 day <= 0 || day > len_months[isleap(year)][month]) { in inleap()
2996 i = len_years[isleap(y)]; in rpytime()
3000 i = -len_years[isleap(y)]; in rpytime()
3005 i = len_months[isleap(y)][m]; in rpytime()
3010 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) { in rpytime()
3047 if (i < 0 || i >= len_months[isleap(y)][m]) { in rpytime()
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/
H A Dtzdst.h55 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
/third_party/python/Lib/test/
H A Dtest_calendar.py498 self.assertEqual(calendar.isleap(2000), 1)
499 self.assertEqual(calendar.isleap(2001), 0)
500 self.assertEqual(calendar.isleap(2002), 0)
501 self.assertEqual(calendar.isleap(2003), 0)
H A Ddatetimetester.py1162 for year, isleap in (2000, True), (2002, False):
1165 if month == 2 and isleap:
/third_party/tzdata/
H A Dlocaltime.c1004 leapyear = isleap(year); in transtime()
1185 = year_lengths[isleap(yearbeg - 1)] * SECSPERDAY; in tzparse()
1196 = year_lengths[isleap(yearbeg)] * SECSPERDAY; in tzparse()
1215 yearsecs = (year_lengths[isleap(year)] in tzparse()
1763 while (year_lengths[isleap(y)] <= idays) { in timesub()
1814 ip = mon_lengths[isleap(y)]; in timesub()
2000 yourtm.tm_mday += year_lengths[isleap(li)]; in time2sub()
2004 yourtm.tm_mday -= year_lengths[isleap(li)]; in time2sub()
2009 i = mon_lengths[isleap(y)][yourtm.tm_mon]; in time2sub()
H A Dprivate.h1018 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
1021 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that
1022 ** isleap(y) == isleap(y % 400)
1024 ** isleap(a + b) == isleap((a + b) % 400)
1026 ** isleap(a + b) == isleap(a % 400 + b % 400)
1032 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
H A Dzic.c2040 i = len_years[isleap(j)]; in getleapdatetime()
2044 i = -len_years[isleap(j)]; in getleapdatetime()
2055 i = len_months[isleap(year)][j]; in getleapdatetime()
2061 day <= 0 || day > len_months[isleap(year)][month]) { in getleapdatetime()
3825 i = len_years[isleap(y)]; in rpytime()
3830 i = len_months[isleap(y)][m]; in rpytime()
3835 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) { in rpytime()
3863 if (i < 0 || i >= len_months[isleap(y)][m]) { in rpytime()
H A Dzdump.c699 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
715 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
/third_party/python/Lib/
H A Dcalendar.py14 "firstweekday", "isleap", "leapdays", "weekday", "monthrange",
102 def isleap(year): function
128 ndays = mdays[month] + (month == February and isleap(year))
133 return mdays[month] + (month == February and isleap(year))
H A D_strptime.py526 yday = 366 if calendar.isleap(year) else 365
/third_party/python/Lib/zoneinfo/
H A D_zoneinfo.py534 if self.julian and d >= 59 and calendar.isleap(year):
584 + (month > 2 and calendar.isleap(year))
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
H A Dtzdst.c368 if (targetMdayOfTargetWday > g_monLengths[(INT32)isleap(year + TM_YEAR_BASE)][month]) { in DstGetDayOfMonth()

Completed in 53 milliseconds