/dports/devel/p5-Date-Leapyear/Date-Leapyear-1.72/t/ |
H A D | 01isleap.t | 9 is( isleap(1900), 0, '1900 is not leap' ); 12 is( isleap(1901), 0, '1901 is not leap' ); 15 is( isleap(1902), 0, '1902 is not leap' ); 18 is( isleap(1903), 0, '1903 is not leap' ); 21 is( isleap(1904), 1, '1904 is leap' ); 24 is( isleap(2000), 1, '2000 is leap' ); 27 is( isleap(2001), 0, '2001 is not leap' ); 30 is( isleap(2004), 1, '2004 is leap' ); 33 is( isleap(1984), 1, '1984 is leap' ); 36 is( isleap(1985), 0, '1985 is not leap' ); [all …]
|
/dports/sysutils/anacron/anacron-2.3/ |
H A D | gregor.c | 68 int isleap; /* save three calls to leap() */ in day_num() local 79 isleap = leap(year); in day_num() 84 else if ((isleap && day > 29) || (!isleap && day > 28)) in day_num() 99 if (month > 2 && isleap) ++dn; in day_num()
|
/dports/devel/p5-Date-Leapyear/Date-Leapyear-1.72/ |
H A D | README | 6 if ( isleap(1945) ) { 11 Date::Leapyear exports one function - isleap - which returns 1 or 0 if a 14 isleap 15 $true = isleap( 2004 );
|
/dports/databases/db18/db-18.1.40/src/os_windows/ |
H A D | ce_gmtime.c | 43 while (dayno >= year_lengths[isleap(year)]) { 44 dayno -= year_lengths[isleap(year)]; 50 while (dayno >= mon_lengths[isleap(year)][timep->tm_mon]) { 51 dayno -= mon_lengths[isleap(year)][timep->tm_mon];
|
/dports/sysutils/p5-Schedule-Match/Schedule-Match-0.07/t/ |
H A D | 25isleap.t | 3 # $Id: 25isleap.t,v 1.1 1999/12/18 03:29:50 tai Exp $ 10 use Schedule::Match qw(scheck rcheck uthash isleap expand localtime); 13 $list .= isleap($_) ? "1" : "0";
|
/dports/devel/liblogging/liblogging-1.0.6/stdlog/ |
H A D | timeutils.c | 124 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro 182 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) { in __stdlog_timesub() 226 idays += year_lengths[isleap(y)]; in __stdlog_timesub() 228 while (idays >= year_lengths[isleap(y)]) { in __stdlog_timesub() 229 idays -= year_lengths[isleap(y)]; in __stdlog_timesub() 257 ip = mon_lengths[isleap(y)]; in __stdlog_timesub()
|
/dports/devel/py-convertdate/convertdate-2.2.0/convertdate/ |
H A D | indian_civil.py | 10 from calendar import isleap 50 leap = isleap(gyear) 85 leap = isleap(greg[0]) # Is this a leap year? 128 if month in HAVE_31_DAYS or (month == 1 and isleap(year - SAKA_EPOCH)):
|
H A D | ordinal.py | 10 from calendar import isleap 29 leap = isleap(year) 37 leap = isleap(year)
|
H A D | gregorian.py | 9 from calendar import isleap, monthrange 32 daysinmonth = 29 if isleap(year) else 28 65 elif isleap(year): 105 leap = isleap(year)
|
/dports/news/golded+/golded-plus/golded+/goldlib/gall/ |
H A D | gtimjuld.cpp | 33 inline int isleap(unsigned yr) { return (yr % 400 == 0) or ((yr % 4 == 0) and (yr % 100 != 0)); } in isleap() function 45 scalar -= isleap(yr) ? 1 : 2; in YMD2JDN() 66 if(isleap(*yr)) in JDN2YMD()
|
/dports/japanese/today/ja-today-2.12_2/ |
H A D | dayinfo.c | 24 int isleap(int year) in isleap() function 59 dayofmonth += isleap(year); in GetDayofMonth() 82 dayofyear += isleap(year); in GetDayofYear() 139 year, isleap(year)+1, (year & 1) + 4); in dayinfo()
|
/dports/sysutils/sleuthkit/sleuthkit-4.7.0/framework/modules/c_FileTypeSigModule/file-5.08/src/ |
H A D | cdf_time.c | 41 #define isleap(y) ((((y) % 4) == 0) && \ macro 58 days += isleap(y) + 365; in cdf_getdays() 72 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 90 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/biology/sra-tools/sra-tools-2.11.0/ncbi-vdb/libs/ext/magic/ |
H A D | cdf_time.c | 41 #define isleap(y) ((((y) % 4) == 0) && \ macro 64 days += isleap(y) + 365; in cdf_getdays() 78 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 96 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/biology/ncbi-vdb/ncbi-vdb-2.11.0/libs/ext/magic/ |
H A D | cdf_time.c | 41 #define isleap(y) ((((y) % 4) == 0) && \ macro 64 days += isleap(y) + 365; in cdf_getdays() 78 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 96 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/lib/timeutils/ |
H A D | wallclocktime.c | 124 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro 125 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400) 156 if (last_dec31 == 4 || (last_dec31 == 5 && isleap(wct->wct_year-1))) in wall_clock_time_iso_week_number() 164 if (jan1 != 4 && (jan1 != 3 || !isleap(wct->wct_year))) in wall_clock_time_iso_week_number() 796 int isleap; in wall_clock_time_strptime() local 802 isleap = isleap_sum(wct->tm.tm_year, TM_YEAR_BASE); in wall_clock_time_strptime() 803 while (wct->tm.tm_yday >= start_of_month[isleap][i]) in wall_clock_time_strptime() 808 wct->tm.tm_yday -= start_of_month[isleap][12]; in wall_clock_time_strptime() 818 isleap = isleap_sum(wct->tm.tm_year, TM_YEAR_BASE); in wall_clock_time_strptime() 820 start_of_month[isleap][wct->tm.tm_mon] + 1; in wall_clock_time_strptime() [all …]
|
/dports/lang/php73/php-7.3.33/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/www/mod_php81/php-8.1.1/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/lang/php81/php-8.1.1/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/lang/php80/php-8.0.15/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/lang/php74/php-7.4.27/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/sysutils/lnav/lnav-0.10.1/src/base/ |
H A D | time_util.cc | 87 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro 156 yleap = isleap(y); in secs2tm() 168 yleap = isleap(y); in secs2tm() 175 ip = mon_yday[isleap(y)]; in secs2tm()
|
/dports/sysutils/php74-fileinfo/php-7.4.27/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/sysutils/php80-fileinfo/php-8.0.15/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/sysutils/php81-fileinfo/php-8.1.1/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|
/dports/sysutils/php73-fileinfo/php-7.3.33/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 42 #define isleap(y) ((((y) % 4) == 0) && \ macro 59 days += isleap(y) + 365; in cdf_getdays() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 91 if (m == 1 && isleap(year)) in cdf_getmonth()
|