<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" color=#000000 size=2>I love Class::Date. Omni2::Control::DateTime is our subclass of it, and it lets you write some&nbsp;cool code.&nbsp; :)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>- "300s"&nbsp;&nbsp;&nbsp; is just spiffy.&nbsp; :)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>j</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>BEFORE</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; my $now = time();<BR>&nbsp;&nbsp; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($now - 300);<BR>&nbsp;&nbsp; my $datestring=sprintf("%04d-%02d-%02d %02d:%02d",($year + 1900),($mon + 1),$mday,$hour,$min);</FONT></DIV>
<DIV><BR><FONT face="Courier New" size=2>AFTER</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; my $datestring = (Omni2::Control::DateTime-&gt;new() - "300s")-&gt;format("%Y-%m-%d %H:%M");</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV></BODY></HTML>