#!/usr/bin/perl use Getopt::Std; getopts( 'd:' ); if( $opt_d ) { $no_seconds_ago = $opt_d * 60 * 60 *24; } ( $sec, $min, $hr, $mday, $mon, $year, $wday, $yday, $isdst ) = localtime(time-$no_seconds_ago); print<\