Displaying 5 results from an estimated 5 matches for "function_strftime".
2020 Feb 13
2
Help with FUNC_MATH
...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>
wrote:
> 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 <dovid at telecurve.com> wrote:
>
>> Hi,...
2020 Feb 13
2
Help with FUNC_MATH
...I am doing?).
>>
>>
>>
>> On Thu, Feb 13, 2020 at 12:03 PM John Kiniston <johnkiniston at gmail.com>
>> wrote:
>>
>>> 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...
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 <dovid at telecurve.com> wrote:
> Hi,
>
> I have some dialplan code that is trying to...
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
...at 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>
> wrote:
>
>> 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 <dovid at tel...