summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib_structs.h
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2008-04-25 12:35:58 +0000
committerDerick Rethans <derick@php.net>2008-04-25 12:35:58 +0000
commit2047fa858c1775742b84501701845b86f8a2a47f (patch)
tree776ce164736845353be8b0a6c1993f4ccceec7ea /ext/date/lib/timelib_structs.h
parentc173b0454c2aaaed04138c4f28fe3cf6deeb945a (diff)
downloadphp-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.h2
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 {