summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2008-05-01 00:12:24 (GMT)
committerDerick Rethans <derick@php.net>2008-05-01 00:12:24 (GMT)
commit8c5274f479bb1f370153ed194445774e3729b844 (patch)
treea70e9b277c38e41839bec5d6ae634caf2be2bc38 /ext/date/lib/timelib.c
parentad93b947a2d7b4eb2643c88befced047b892d590 (diff)
downloadphp-8c5274f479bb1f370153ed194445774e3729b844.tar.gz
- MFH: Added the DatePeriod class/iterator that iterates over a date time
object for a specific number of iterators and applies a DateInterval each time. @DOC: More will follow though
Diffstat (limited to 'ext/date/lib/timelib.c')
-rw-r--r--ext/date/lib/timelib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/date/lib/timelib.c b/ext/date/lib/timelib.c
index 064237f..7dd746e 100644
--- a/ext/date/lib/timelib.c
+++ b/ext/date/lib/timelib.c
@@ -46,6 +46,13 @@ timelib_rel_time* timelib_rel_time_ctor(void)
return t;
}
+timelib_rel_time* timelib_rel_time_clone(timelib_rel_time *rel)
+{
+ timelib_rel_time *tmp = timelib_rel_time_ctor();
+ memcpy(tmp, rel, sizeof(timelib_rel_time));
+ return tmp;
+}
+
void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr)
{
unsigned int i;