[asterisk-users] Asterisk dialplan date and time operations

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jan 2 11:59:06 CST 2008


On Wednesday 02 January 2008 09:34:24 Erik Wartusch wrote:
> No it's even simpler. ( I dont need an IF case)
> I just want to add e.g. 15 minutes to the current date / time:
>
> So simply said:
>
> ${STRFTIME(${EPOCH},,%Y%m%d%H%M)} + 15 minutes!
>
> My question was how can I do that.? Of yourse e.g. if it's 23.57 pm and I
> add 15 minutes the day should increase +1 and the hours start with 0:x the
> minutes with 12 ( and not 72 as the normal addition would result).

${STRFTIME($[${EPOCH} + (15 * 60)],,%Y%m%d%H%M)}

-- 
Tilghman



More information about the asterisk-users mailing list