[Freeswitch-svn] [commit] r9118 - in freeswitch/trunk/src: . include

Freeswitch SVN anthm at freeswitch.org
Mon Jul 21 09:12:23 EDT 2008


Author: anthm
Date: Mon Jul 21 09:12:22 2008
New Revision: 9118

Modified:
   freeswitch/trunk/src/include/switch_apr.h
   freeswitch/trunk/src/switch_apr.c

Log:
add patch from FSCORE-160

Modified: freeswitch/trunk/src/include/switch_apr.h
==============================================================================
--- freeswitch/trunk/src/include/switch_apr.h	(original)
+++ freeswitch/trunk/src/include/switch_apr.h	Mon Jul 21 09:12:22 2008
@@ -303,6 +303,13 @@
 SWITCH_DECLARE(switch_status_t) switch_time_exp_lt(switch_time_exp_t *result, switch_time_t input);
 
 /**
+ * convert a time to its human readable components in a specific timezone with offset
+ * @param result the exploded time
+ * @param input the time to explode
+ */
+SWITCH_DECLARE(switch_status_t) switch_time_exp_tz(switch_time_exp_t *result, switch_time_t input, switch_int32_t offs);
+
+/**
  * Sleep for the specified number of micro-seconds.
  * @param t desired amount of time to sleep.
  * @warning May sleep for longer than the specified time. 

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Mon Jul 21 09:12:22 2008
@@ -230,6 +230,11 @@
 	return apr_time_exp_lt((apr_time_exp_t *) result, input);
 }
 
+SWITCH_DECLARE(switch_status_t) switch_time_exp_tz(switch_time_exp_t *result, switch_time_t input, switch_int32_t offs)
+{
+	return apr_time_exp_tz((apr_time_exp_t *) result, input, (apr_int32_t )offs);
+}
+
 SWITCH_DECLARE(switch_status_t) switch_time_exp_gmt(switch_time_exp_t *result, switch_time_t input)
 {
 	return apr_time_exp_gmt((apr_time_exp_t *) result, input);



More information about the Freeswitch-svn mailing list