/dports/math/R-cran-terra/terra/src/ |
H A D | date.h | 83 std::vector<int> mdays = month_days(year); in ymd() local 88 days += mdays[month]; in ymd() 90 day = x - days + mdays[month]; in ymd() 106 days += mdays[month]; in ymd() 129 day += mdays[i]; in date_from_ymd() 142 day += mdays[i]; in date_from_ymd() 178 std::vector<int> mdays = month_days(year); in SpatDate() local 180 while ( doy > mdays[month] ) { in SpatDate() 181 doy = doy - mdays[month]; in SpatDate() 190 std::vector<int> mdays = month_days(d[0]); in doy() local [all …]
|
/dports/finance/beanie/beanie-0.8.2/lib/ |
H A D | cdate.c | 97 while (*dp > mdays(*mp, *yp)) { in calcdate() 98 *dp -= mdays(*mp, *yp); in calcdate() 126 if (*dp > mdays(*mp, *yp)) in calcdate() 127 *dp = mdays(*mp, *yp); in calcdate() 136 while (*dp > mdays(*mp, *yp)) { in calcdate() 137 *dp -= mdays(*mp, *yp); in calcdate()
|
/dports/sysutils/sleuthkit/sleuthkit-4.7.0/framework/modules/c_FileTypeSigModule/file-5.08/src/ |
H A D | cdf_time.c | 44 static const int mdays[] = { 71 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getday() 72 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 88 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getmonth() 89 days -= mdays[m]; in cdf_getmonth()
|
/dports/biology/sra-tools/sra-tools-2.11.0/ncbi-vdb/libs/ext/magic/ |
H A D | cdf_time.c | 44 static const int mdays[] = { 77 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getday() 78 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 94 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getmonth() 95 days -= mdays[m]; in cdf_getmonth()
|
/dports/biology/ncbi-vdb/ncbi-vdb-2.11.0/libs/ext/magic/ |
H A D | cdf_time.c | 44 static const int mdays[] = { 77 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getday() 78 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 94 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getmonth() 95 days -= mdays[m]; in cdf_getmonth()
|
/dports/lang/php73/php-7.3.33/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/sysutils/php73-fileinfo/php-7.3.33/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/www/mod_php73/php-7.3.33/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < sizeof(mdays) / sizeof(mdays[0]); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/lang/mawk/mawk-1.3.4-20190203/examples/ |
H A D | hcal | 318 Ydays = Ydays - J + 1 ; mdays = Mdays[M] - D + 1 325 Ydays = J ; mdays = D 340 Ydays = Ydays - J + 1 ; mdays = Mdays[M] - D + 1 342 while ( N >= ( ( mdays > 0 ) ? mdays : Mdays[M] ) ) { Next_M() } 346 Ydays = J ; mdays = D ; N *= -1 348 while ( N >= ( ( mdays > 0 ) ? mdays : Mdays[M] ) ) { Prev_M() } 378 N -= Ydays ; Y += 1 ; M = 1 ; D = 1 ; mdays = 0 ; Leap(Y) 381 if ( mdays != 0 ) N -= mdays ; else N -= Mdays[M] 382 M += 1 ; D = 1 ; mdays = 0 393 if ( mdays != 0 ) N -= mdays ; else N -= Mdays[M] [all …]
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/lotuswordpro/source/filter/ |
H A D | localtime.cxx | 129 long const * mdays; in LtgGmTime() local 134 mdays = lpdays; in LtgGmTime() 140 mdays = days; in LtgGmTime() 143 for ( tmptim = 1 ; mdays[tmptim] < rtm.tm_yday ; tmptim++ ) ; in LtgGmTime() 147 rtm.tm_mday = rtm.tm_yday - mdays[tmptim]; in LtgGmTime()
|
/dports/editors/libreoffice/libreoffice-7.2.6.2/lotuswordpro/source/filter/ |
H A D | localtime.cxx | 129 tools::Long const* mdays; in LtgGmTime() local 134 mdays = lpdays; in LtgGmTime() 140 mdays = days; in LtgGmTime() 143 for (tmptim = 1; mdays[tmptim] < rtm.tm_yday; tmptim++) in LtgGmTime() 148 rtm.tm_mday = rtm.tm_yday - mdays[tmptim]; in LtgGmTime()
|
/dports/lang/spidermonkey60/firefox-60.9.0/modules/pdfium/pdfium/fpdfsdk/ |
H A D | cpdfsdk_datetime.cpp | 336 int mdays; in AddDays() local 341 mdays = GetMonthDays(y, m); in AddDays() 342 if (d > mdays) { in AddDays() 344 d -= mdays; in AddDays() 348 mdays = GetMonthDays(y, m) - d + 1; in AddDays() 349 while (ldays >= mdays) { in AddDays() 350 ldays -= mdays; in AddDays() 353 mdays = GetMonthDays(y, m); in AddDays() 366 int mdays = GetMonthDays(y, m); in AddDays() local 367 if (d > mdays) { in AddDays() [all …]
|
/dports/devel/R-cran-lubridate/lubridate/tests/testthat/ |
H A D | test-update.R | 7 expect_is(update(date, mdays = 1), "Date") 28 expect_is(update(poslt, mdays = 1), "POSIXlt") 43 expect_is(update(posct, mdays = 1), "POSIXct") 55 expect_equal(mday(update(date, mdays = 1)), 1) 56 expect_equal(wday(update(date, mdays = 1)), 7) 57 expect_equal(yday(update(date, mdays = 1)), 121) 75 expect_equal(mday(update(poslt, mdays = 1)), 1) 76 expect_equal(wday(update(poslt, mdays = 1)), 2) 90 expect_equal(mday(update(posct, mdays = 1)), 1) 91 expect_equal(wday(update(posct, mdays = 1)), 2) [all …]
|
/dports/databases/redis-devel/redis-0e5b813/src/ |
H A D | localtime.c | 93 int mdays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; in nolocks_localtime() local 94 mdays[1] += is_leap_year(tmp->tm_year); in nolocks_localtime() 97 while(days >= mdays[tmp->tm_mon]) { in nolocks_localtime() 98 days -= mdays[tmp->tm_mon]; in nolocks_localtime()
|
/dports/databases/redis6/redis-6.0.16/src/ |
H A D | localtime.c | 93 int mdays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; in nolocks_localtime() local 94 mdays[1] += is_leap_year(tmp->tm_year); in nolocks_localtime() 97 while(days >= mdays[tmp->tm_mon]) { in nolocks_localtime() 98 days -= mdays[tmp->tm_mon]; in nolocks_localtime()
|
/dports/databases/redis5/redis-5.0.14/src/ |
H A D | localtime.c | 93 int mdays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; in nolocks_localtime() local 94 mdays[1] += is_leap_year(tmp->tm_year); in nolocks_localtime() 97 while(days >= mdays[tmp->tm_mon]) { in nolocks_localtime() 98 days -= mdays[tmp->tm_mon]; in nolocks_localtime()
|
/dports/www/mod_php81/php-8.1.1/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/lang/php81/php-8.1.1/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/lang/php80/php-8.0.15/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/lang/php74/php-7.4.27/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/sysutils/php74-fileinfo/php-7.4.27/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/sysutils/php80-fileinfo/php-8.0.15/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/sysutils/php81-fileinfo/php-8.1.1/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|
/dports/sysutils/file/file-5.39/src/ |
H A D | cdf_time.c | 44 static const int mdays[] = { 71 for (m = 0; m < __arraycount(mdays); m++) { 72 int sub = mdays[m] + (m == 1 && isleap(year)); 88 for (m = 0; m < __arraycount(mdays); m++) { 89 days -= mdays[m];
|
/dports/www/mod_php80/php-8.0.15/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 45 static const int mdays[] = { 72 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getday() 73 int sub = mdays[m] + (m == 1 && isleap(year)); in cdf_getday() 89 for (m = 0; m < __arraycount(mdays); m++) { in cdf_getmonth() 90 days -= mdays[m]; in cdf_getmonth()
|