Home
last modified time | relevance | path

Searched refs:SECS_PER_DAY (Results 1 – 6 of 6) sorted by relevance

/php-src/ext/calendar/
H A Dcal_unix.c24 #define SECS_PER_DAY (24 * 3600) macro
65 …if (uday < 0 || uday > ZEND_LONG_MAX / SECS_PER_DAY) { /* before beginning of unix epoch or greate… in PHP_FUNCTION()
66 …zend_value_error("jday must be between 2440588 and " ZEND_LONG_FMT, ZEND_LONG_MAX / SECS_PER_DAY +… in PHP_FUNCTION()
70 RETURN_LONG(uday * SECS_PER_DAY); in PHP_FUNCTION()
/php-src/ext/date/lib/
H A Dunixtime2tm.c35 days = ts / SECS_PER_DAY + HINNANT_EPOCH_SHIFT; in timelib_unixtime2date()
38 t = ts % SECS_PER_DAY; in timelib_unixtime2date()
63 remainder = ts % SECS_PER_DAY; in timelib_unixtime2gmt()
64 remainder += (remainder < 0) * SECS_PER_DAY; in timelib_unixtime2gmt()
H A Dparse_posix.c427 return value * SECS_PER_DAY; in calc_transition()
431 return psi->days * SECS_PER_DAY; in calc_transition()
467 value = d * SECS_PER_DAY; in calc_transition()
469 value += month_lengths[leap_year][i] * SECS_PER_DAY; in calc_transition()
493 return SECS_PER_DAY * ( in timelib_ts_at_start_of_year()
H A Dinterval.c112 if ((two->sse - one->sse + dst_corr) < SECS_PER_DAY) { in timelib_diff_with_tzid()
123 …!((one->sse + SECS_PER_DAY > trans_transition_time) && (one->sse + SECS_PER_DAY <= (trans_transiti… in timelib_diff_with_tzid()
125 ((two->sse - one->sse + dst_corr) % SECS_PER_DAY) > (two->sse - trans_transition_time) in timelib_diff_with_tzid()
131 } else if (two->sse - one->sse >= SECS_PER_DAY) { in timelib_diff_with_tzid()
H A Dtimelib_private.h89 #define SECS_PER_DAY 86400 macro
H A Dtm2unixtime.c480 time->sse += timelib_epoch_days_from_time(time) * (SECS_PER_DAY / 2); in timelib_update_ts()
481 time->sse += timelib_epoch_days_from_time(time) * (SECS_PER_DAY / 2); in timelib_update_ts()

Completed in 17 milliseconds