diff options
author | Derick Rethans <derick@php.net> | 2008-04-25 12:35:58 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2008-04-25 12:35:58 +0000 |
commit | 2047fa858c1775742b84501701845b86f8a2a47f (patch) | |
tree | 776ce164736845353be8b0a6c1993f4ccceec7ea /ext/date/lib/timelib_structs.h | |
parent | c173b0454c2aaaed04138c4f28fe3cf6deeb945a (diff) | |
download | php-git-2047fa858c1775742b84501701845b86f8a2a47f.tar.gz |
- Added new date/time functionality:
. support for diffing date/times through date_diff() / DateTime::diff().
. added DateInterval class to represent the difference between two date/times.
. support for parsing ISO intervals for use with DateInterval.
. date_add() / DateTime::add(), date_sub() / DateTime::sub() for applying an
interval to an existing date/time.
- MFH: Fixed bug #44742 (timezone_offset_get() causes segmentation faults).
Diffstat (limited to 'ext/date/lib/timelib_structs.h')
-rw-r--r-- | ext/date/lib/timelib_structs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/date/lib/timelib_structs.h b/ext/date/lib/timelib_structs.h index 4d6ed12a7f..1aeabd4712 100644 --- a/ext/date/lib/timelib_structs.h +++ b/ext/date/lib/timelib_structs.h @@ -124,6 +124,8 @@ typedef struct timelib_rel_time { int weekday_behavior; /* 0: the current day should *not* be counted when advancing forwards; 1: the current day *should* be counted */ int first_last_day_of; + int invert; /* Whether the difference should be inverted */ + timelib_sll days; /* Contains the number of *days*, instead of Y-M-D differences */ } timelib_rel_time; typedef struct timelib_time_offset { |