]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add patch from FSCORE-160
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Jul 2008 13:12:22 +0000 (13:12 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 21 Jul 2008 13:12:22 +0000 (13:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9118 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_apr.h
src/switch_apr.c

index 4434bdf7208ffed9c572adece852597c95b4c5ff..81b72078799d4e6df4269d8ab6ab488d7c029c39 100644 (file)
@@ -302,6 +302,13 @@ SWITCH_DECLARE(switch_status_t) switch_time_exp_get(switch_time_t *result, switc
  */
 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.
index 21f9242e306bb1964597d9a6dde11cb50b23b23d..f29c81885eb9da3ab339cab919529f0f635f14b2 100644 (file)
@@ -230,6 +230,11 @@ SWITCH_DECLARE(switch_status_t) switch_time_exp_lt(switch_time_exp_t *result, sw
        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);