Yeah, that'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> <<a href="mailto:bennymack@gmail.com">bennymack@gmail.com</a>> 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 'my $time = time; printf( "NOW:<br>%s, ONE MINUTE AGO: %s\n", scalar localtime $time, scalar localtime<br>$time - 60 );'<br><br>
I can't think of any situations where that wouldn't work, but I'm often wrong...<br><br>Ben<br><br>On 9/25/07, Dan Magnuszewski <<a href="mailto:magnachef@gmail.com">magnachef@gmail.com</a>> wrote:<br>> All,
<br>><br>> I'm looking for a module or Linux command that will allow me to get the<br>> date/time one minute ago. I know this sounds trivial (just subtract 1 from<br>> minute) but it can get messy at midnight on the first of the month, or the
<br>> first day of the year, etc. It's not hard, just a pain to code that up, and<br>> it'd be nice if there was already something that could do the work for me<br>> :-)<br>><br>> Does anyone know of anything that will do this?
<br>><br>> -Dan<br>><br>><br>> _______________________________________________<br>> Buffalo Perl Mongers Homepage<br>> <a href="http://buffalo.pm.org">http://buffalo.pm.org</a><br>><br>> Buffalo-pm mailing list
<br>> <a href="mailto:Buffalo-pm@pm.org">Buffalo-pm@pm.org</a><br>> <a href="http://mail.pm.org/mailman/listinfo/buffalo-pm">http://mail.pm.org/mailman/listinfo/buffalo-pm</a><br>><br></blockquote></div><br>