It is available in 1.4.18 at least:

  -= Info about function 'STRFTIME' =-

[Syntax]
STRFTIME([<epoch>][|[timezone][|format]])

[Synopsis]
Returns the current date/time in a specified format.


-----Original Message-----
From: Leif Madsen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2008 3:48 PM
To: Toronto Asterisk UG
Subject: Re: [on-asterisk] Setting the current date as a variable

On Mon, Mar 10, 2008 at 3:08 PM, Anastasia LePlume <[EMAIL PROTECTED]> wrote:
> Im trying to assign a date to the various caller ID's which dial into my
>  system.

(Originally sent this only to Anastasia, but this is for everyones
benefit / discussion)

${EPOCH} will give you the number of seconds from the unix epoch.

I think you can also use the STRFTIME() dialplan function. I know
that's in 1.6, but can't remember if it's in 1.4 (although I think it
is).

Leif.

--
Leif Madsen.
http://www.leifmadsen.com
http://www.oreilly.com/catalog/asterisk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to