[asterisk-users] STRFTIME function declared in globals context

Warren Selby wcselby at selbytech.com
Tue Jul 13 13:56:19 CDT 2010


On Tue, Jul 13, 2010 at 1:49 PM, Danny Nicholas <danny at debsinc.com> wrote:

>  --
>
> Since you never know when you’ll need this, I slapped the code into my
> 1.4.30.
>
> Here is the “corrected” code that works
>
> YEAR = ${STRFTIME(${EPOCH}||%Y)}
>
> MONTH = ${STRFTIME(${EPOCH}||%m)}
>
> DAY = ${STRFTIME(${EPOCH}||%d)}
>
> TIMESTAMP = ${STRFTIME(${EPOCH}||%Y%m%d-%H%M%S)}
>
>
Wow, I'm surprised that worked, but it did!  Thanks very much!

-- 
Thanks,
--Warren Selby
http://www.selbytech.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100713/d89366fa/attachment.htm 


More information about the asterisk-users mailing list