summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2008-05-04 20:52:56 (GMT)
committerDerick Rethans <derick@php.net>2008-05-04 20:52:56 (GMT)
commitf53367171161e4a9ec8543e45e9041385d1465a3 (patch)
tree23e58c304dc980e60d2640178309e00c87dd469e /ext/date/lib/timelib.c
parent87922550b0cb255593c1641b42cec0b4bb72e2da (diff)
downloadphp-f53367171161e4a9ec8543e45e9041385d1465a3.tar.gz
- MFH: Added support for "<xth> <weekday of" and "last <weekday> of" phrases to
be used with months - like in "last saturday of februari 2008".
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r--ext/date/lib/timelib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c
index 00868a2..61cc55a 100644
--- a/ext/date/lib/timelib.c
+++ b/ext/date/lib/timelib.c
@@ -242,6 +242,12 @@ void timelib_dump_date(timelib_time *d, int options)
case TIMELIB_SPECIAL_WEEKDAY:
printf(" / %lld weekday", d->relative.special.amount);
break;
+ case TIMELIB_SPECIAL_DAY_OF_WEEK_IN_MONTH:
+ printf(" / x y of z month");
+ break;
+ case TIMELIB_SPECIAL_LAST_DAY_OF_WEEK_IN_MONTH:
+ printf(" / last y of z month");
+ break;
}
}
}