summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2006-05-14 17:36:05 (GMT)
committerDerick Rethans <derick@php.net>2006-05-14 17:36:05 (GMT)
commit74dfa9f0ba7aef4a88e45443a02ef0147b6063e3 (patch)
tree0d7d5da10a8b30987e5827c3bd8912619c540c45 /ext/date/lib/timelib.c
parent4ab6eb3d199b0b111fff24a9bf6b05d1d10259b5 (diff)
downloadphp-74dfa9f0ba7aef4a88e45443a02ef0147b6063e3.tar.gz
MFH:
- Implemented Dmitry's const patch. - Added support for "weekday" as relative item. - Fixed bug #37368 (Incorrect timestamp returned for strtotime()).
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r--ext/date/lib/timelib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c
index 071d6f4..7d647ab 100644
--- a/ext/date/lib/timelib.c
+++ b/ext/date/lib/timelib.c
@@ -205,6 +205,13 @@ void timelib_dump_date(timelib_time *d, int options)
if (d->have_weekday_relative) {
printf(" / %d.%d", d->relative.weekday, d->relative.weekday_behavior);
}
+ if (d->have_special_relative) {
+ switch (d->special.type) {
+ case TIMELIB_SPECIAL_WEEKDAY:
+ printf(" / %lld weekday", d->special.amount);
+ break;
+ }
+ }
}
printf("\n");
}