add patch from FSCORE-160
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9118 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8d66eab47f
commit
a9886895f1
|
@ -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);
|
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.
|
* Sleep for the specified number of micro-seconds.
|
||||||
* @param t desired amount of time to sleep.
|
* @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);
|
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)
|
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);
|
return apr_time_exp_gmt((apr_time_exp_t *) result, input);
|
||||||
|
|
Loading…
Reference in New Issue