Yeah, that&#39;s what I was looking for!<br><br>Thanks.<br><br><div><span class="gmail_quote">On 9/25/07, <b class="gmail_sendername">Ben. B.</b> &lt;<a href="mailto:bennymack@gmail.com">bennymack@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If you deal with a Unix time_t to start with, it really should be as<br>simple as subtracting 60 seconds from it. Then use POSIX::strftime to
<br>format it however you like.<br><br>perl -Mstrict -Mwarnings -MPOSIX -e &#39;my $time = time; printf( &quot;NOW:<br>%s, ONE MINUTE AGO: %s\n&quot;, scalar localtime $time, scalar localtime<br>$time - 60 );&#39;<br><br>
I can&#39;t think of any situations where that wouldn&#39;t work, but I&#39;m often wrong...<br><br>Ben<br><br>On 9/25/07, Dan Magnuszewski &lt;<a href="mailto:magnachef@gmail.com">magnachef@gmail.com</a>&gt; wrote:<br>&gt; All,
<br>&gt;<br>&gt; I&#39;m looking for a module or Linux command that will allow me to get the<br>&gt; date/time one minute ago. I know this sounds trivial (just subtract 1 from<br>&gt; minute) but it can get messy&nbsp;&nbsp;at midnight on the first of the month, or the
<br>&gt; first day of the year, etc. It&#39;s not hard, just a pain to code that up, and<br>&gt; it&#39;d be nice if there was already something that could do the work for me<br>&gt; :-)<br>&gt;<br>&gt; Does anyone know of anything that will do this?
<br>&gt;<br>&gt; -Dan<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Buffalo Perl Mongers Homepage<br>&gt; <a href="http://buffalo.pm.org">http://buffalo.pm.org</a><br>&gt;<br>&gt; Buffalo-pm mailing list
<br>&gt; <a href="mailto:Buffalo-pm@pm.org">Buffalo-pm@pm.org</a><br>&gt; <a href="http://mail.pm.org/mailman/listinfo/buffalo-pm">http://mail.pm.org/mailman/listinfo/buffalo-pm</a><br>&gt;<br></blockquote></div><br>