summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2008-05-01 16:15:45 (GMT)
committerDerick Rethans <derick@php.net>2008-05-01 16:15:45 (GMT)
commit97b37f253c13d5db9d620c6cf78829cd49b340d0 (patch)
treedd5adde1f11a56ce1d8e141cdcc2c4bd2e1dc6b4 /ext/date/lib/timelib.c
parent1b435af32624b40aa18d94390cd4aeb3e57539ea (diff)
downloadphp-97b37f253c13d5db9d620c6cf78829cd49b340d0.tar.gz
- MFH: Rearranged some structures to allow for more powerfull period/intervals.
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r--ext/date/lib/timelib.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c
index 7dd746e..00868a2 100644
--- a/ext/date/lib/timelib.c
+++ b/ext/date/lib/timelib.c
@@ -234,15 +234,15 @@ void timelib_dump_date(timelib_time *d, int options)
break;
}
}
- }
- 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;
+ if (d->relative.have_weekday_relative) {
+ printf(" / %d.%d", d->relative.weekday, d->relative.weekday_behavior);
+ }
+ if (d->relative.have_special_relative) {
+ switch (d->relative.special.type) {
+ case TIMELIB_SPECIAL_WEEKDAY:
+ printf(" / %lld weekday", d->relative.special.amount);
+ break;
+ }
}
}
}