use Datum:: Calc qw (: alle);
Vor_getCOB {
mein $mon = „JanFebMarAprMayJunJulAugSepOctNovDec“;
mein @date;
mein ($year, $month, $day) = Add_Delta_Days (heute (), 0);
mein $dow = Day_of_Week ($year, $month, $day);
#if ($dow == 1) {
# @date = Add_Delta_Days (heute (), -3);
#}
#elsif ($dow == 7) {
# @date = Add_Delta_Days (heute (), -2);
#}
@date = Add_Delta_Days (heute (), -0);
mein $date = $date [2]. „-“. substr ($mon, $date [1] *3 - 3, 3). „-“. $date [0];
Rückhol$date;
}
mein $cob_date;
$cob_date = &_getCOB ();
Druck $cob_date;
|