summaryrefslogtreecommitdiff
path: root/ext/date/lib/unixtime2tm.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2005-06-30 21:38:06 +0000
committerDerick Rethans <derick@php.net>2005-06-30 21:38:06 +0000
commite155585e6e1338110b0c31e1054d6b28b5bcff5b (patch)
treed6cf6de0ff527954dcacab6a9099faa23e5e4c31 /ext/date/lib/unixtime2tm.c
parent2e794631203339035f705f81e4855642b3332f97 (diff)
downloadphp-git-e155585e6e1338110b0c31e1054d6b28b5bcff5b.tar.gz
- Reimplemented date and gmdate with new timelib code.
- Removed old date/gmdate implementations. - Moved date() related testcases to ext/date/tests. - Implemented bug #33452. - Fixed testcase for bug #27719 - there is no timezone called "EST5DST".
Diffstat (limited to 'ext/date/lib/unixtime2tm.c')
-rw-r--r--ext/date/lib/unixtime2tm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/lib/unixtime2tm.c b/ext/date/lib/unixtime2tm.c
index 169cce0c93..59ac9a8774 100644
--- a/ext/date/lib/unixtime2tm.c
+++ b/ext/date/lib/unixtime2tm.c
@@ -63,7 +63,7 @@ void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts)
tmp_days = days + 1;
while (tmp_days >= DAYS_PER_LYEAR) {
cur_year++;
- if (is_leap(cur_year)) {
+ if (timelib_is_leap(cur_year)) {
tmp_days -= DAYS_PER_LYEAR;
} else {
tmp_days -= DAYS_PER_YEAR;
@@ -82,7 +82,7 @@ void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts)
while (tmp_days <= 0) {
cur_year--;
DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year););
- if (is_leap(cur_year)) {
+ if (timelib_is_leap(cur_year)) {
tmp_days += DAYS_PER_LYEAR;
} else {
tmp_days += DAYS_PER_YEAR;
@@ -92,7 +92,7 @@ void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts)
}
DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year););
- months = is_leap(cur_year) ? month_tab_leap : month_tab;
+ months = timelib_is_leap(cur_year) ? month_tab_leap : month_tab;
i = 11;
while (i > 0) {
DEBUG(printf("month=%lld (%d)\n", i, months[i]););