[Asterisk-Users] ${EPOCH} and ${DATETIME} patch

Karl Putland karl at putland.linux-site.net
Sun Apr 20 19:50:17 MST 2003


On Sun, 2003-04-20 at 20:26, Benjamin Miller wrote:
> Greetings,
> This patch adds two global variables to Asterisk,
> EPOCH and DATETIME
> These can be used to retrieve the epoch or a datetime stamp (usable in
> file names) for the moment these variables are resolved.
> 
> EPOCH is an epoch of course, and DATETIME is DDMMYYYY-HH:MM:SS

I'd suggest iso style YYYYMMDD
That way things always sort correctly and it's unambiguous.

-- 
Karl Putland <karl at putland.linux-site.net>




More information about the asterisk-users mailing list