Displaying 5 results from an estimated 5 matches for "strfime".
Did you mean:
strftime
2020 Feb 13
2
Help with FUNC_MATH
John,
>From looking at the wiki won't STRFIME just give me what I need based on
the unix time that I put in? What I am actually looking to do is convert
over from 12 hour format to 24 (unless strftime does just that and I don't
kow what am I am doing?).
On Thu, Feb 13, 2020 at 12:03 PM John Kiniston <johnkiniston at gmail.com>
wro...
2020 Feb 13
2
Help with FUNC_MATH
...to convert in the format of date string,
> Instead you have your users entering via DTMF when they want something to
> happen?
>
> On Thu, Feb 13, 2020 at 11:08 AM Dovid Bender <dovid at telecurve.com> wrote:
>
>> John,
>>
>> From looking at the wiki won't STRFIME just give me what I need based on
>> the unix time that I put in? What I am actually looking to do is convert
>> over from 12 hour format to 24 (unless strftime does just that and I don't
>> kow what am I am doing?).
>>
>>
>>
>> On Thu, Feb 13, 2020 at...
2020 Feb 13
0
Help with FUNC_MATH
...u don't have the time you need to convert in the format of date string,
Instead you have your users entering via DTMF when they want something to
happen?
On Thu, Feb 13, 2020 at 11:08 AM Dovid Bender <dovid at telecurve.com> wrote:
> John,
>
> From looking at the wiki won't STRFIME just give me what I need based on
> the unix time that I put in? What I am actually looking to do is convert
> over from 12 hour format to 24 (unless strftime does just that and I don't
> kow what am I am doing?).
>
>
>
> On Thu, Feb 13, 2020 at 12:03 PM John Kiniston <j...
2020 Feb 13
4
Help with FUNC_MATH
Hi,
I have some dialplan code that is trying to convert 12 hour time with AM/PM
to 24 hour format. The code has something like this:
Exten =>
2,1,ExecIf(${MATH(${HOUR_SELECTED}<12)}?Set(HOUR_SELECTED=${MATH(${HOUR_SELECTED}+12,int)}))
Earlier on in the dialplan HOUR_SELECTED is set to 12. When they press
option 2 they are selecting PM. If the time is from 1PM to 11PM then I want
to add 12
2020 Feb 13
0
Help with FUNC_MATH
Try using the STRFIME function instead of doing this by hand.
https://wiki.asterisk.org/wiki/display/AST/Function_STRFTIME
*%H*
The hour as a decimal number using a 24-hour clock (range 00 to 23).
*%I*
The hour as a decimal number using a 12-hour clock (range 01 to 12).
On Thu, Feb 13, 2020 at 3:49 AM Dovid Bender...