5 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
sub getThirdFriday(){
my ($year, $month)=@_;
my $startThirdWeek=15;
my $dow = Day_of_Week($year, $month, "15");
if ($dow<6) {
return $startThirdWeek+5-$dow;
}
else {
return $startThirdWeek+12-$dow;
}
1
2
3
4
5
6
7
sub getThirdFriday {
my ($year, $month) = @_;
return (Nth_Weekday_of_Month_Year($year,$month,
5, # Freitag
3 # 3. im Monat
))[2]; # nur den Tag zurueckgeben
}
5 Einträge, 1 Seite |