提交 a9886895 authored 作者: Anthony Minessale's avatar Anthony Minessale

add patch from FSCORE-160

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9118 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8d66eab4
......@@ -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.
......
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论