diff options
| author | Derick Rethans <derick@php.net> | 2008-05-04 20:52:56 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2008-05-04 20:52:56 +0000 |
| commit | f53367171161e4a9ec8543e45e9041385d1465a3 (patch) | |
| tree | 23e58c304dc980e60d2640178309e00c87dd469e /ext/date/lib/timelib.c | |
| parent | 87922550b0cb255593c1641b42cec0b4bb72e2da (diff) | |
| download | php-git-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c index 00868a2c03..61cc55ab78 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; } } } |
