my $SecPerDay = 24*60*60; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time - $SecPerDay);