[asterisk-users] Asterisk dialplan date and time operations
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Wed Jan 2 09:43:28 CST 2008
On Wednesday 02 January 2008 07:16:15 Erik Wartusch wrote:
> Yes. Thats what I plan to do and allready knew about. But I want to know
> wether there is an easy option to operate with times (add x minutes to a
> time) or not? My research until now wasn't successful and I'm wondering
> that nobody before had this problem... (date and time manipulation)
There is not. However, if you convert your time to seconds, then it's
naturally easy to do math, and you can then convert the format back.
You can use the dialplan functions STRPTIME() and STRFTIME() to help you
with the conversions.
--
Tilghman
More information about the asterisk-users
mailing list