En outre, dans la perldoc, voici la réponse à la question SHOULD I USE DATE::MANIP
Date::Manip is written entirely in perl. It’s the most powerful of the
date modules. It’s also the biggest and slowest.
Bref, pourquoi ne pas utiliser directement la commande date ?!
* avec perl :
use Date::Manip;
my $nextDate = DateCalc("$year-$month-$day 07:00:00", "+ 1 day");
$validity_start = UnixDate($nextDate, "%Y-%m-%d 07:00:00");
* en bash
date -d '2007-03-12 11:23:59 1 day ago' +'%Y-%m-%d %H:%M:%S'
Aucun commentaire:
Enregistrer un commentaire