<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>${EPOCH} and ${DATETIME} patch</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Greetings,</FONT>
<BR><FONT SIZE=2>This patch adds two global variables to Asterisk,</FONT>
<BR><FONT SIZE=2>EPOCH and DATETIME</FONT>
<BR><FONT SIZE=2>These can be used to retrieve the epoch or a datetime stamp (usable in file names) for the moment these variables are resolved.</FONT></P>
<P><FONT SIZE=2>EPOCH is an epoch of course, and DATETIME is DDMMYYYY-HH:MM:SS format. Not natively US format for a date, but used more widely for date stamping files (And it always makes more sense to me that way any way).</FONT></P>
<P><FONT SIZE=2>Until someone writes a fill app_gettime(VARNAME, "format") to make a customizable date format, this will suffice for many uses. I imagine one could make a unique, human readable filename by doing:</FONT></P>
<P><FONT SIZE=2>${DATETIME)-${CHANNEL}.</FONT>
</P>
<P><FONT SIZE=2>I've sent a copy to Mark as well for approval.</FONT>
<BR><FONT SIZE=2>Ben</FONT>
</P>
</BODY>
</HTML>