--- embedaddon/php/ext/date/lib/timelib.h 2012/05/29 12:34:37 1.1.1.2 +++ embedaddon/php/ext/date/lib/timelib.h 2014/06/15 20:03:41 1.1.1.4 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2010 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: timelib.h,v 1.1.1.2 2012/05/29 12:34:37 misho Exp $ */ +/* $Id: timelib.h,v 1.1.1.4 2014/06/15 20:03:41 misho Exp $ */ #ifndef __TIMELIB_H__ #define __TIMELIB_H__ @@ -91,6 +91,8 @@ int timelib_apply_localtime(timelib_time *t, unsigned void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts); void timelib_unixtime2local(timelib_time *tm, timelib_sll ts); void timelib_update_from_sse(timelib_time *tm); +void timelib_set_timezone_from_offset(timelib_time *t, timelib_sll utc_offset); +void timelib_set_timezone_from_abbr(timelib_time *t, timelib_abbr_info abbr_info); void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz); /* From parse_tz.c */ @@ -136,5 +138,7 @@ int timelib_astro_rise_set_altitude(timelib_time *time /* from interval.c */ timelib_rel_time *timelib_diff(timelib_time *one, timelib_time *two); +timelib_time *timelib_add(timelib_time *t, timelib_rel_time *interval); +timelib_time *timelib_sub(timelib_time *t, timelib_rel_time *interval); #endif