Skip to content

Commit

Permalink
Merge pull request #3442 from FAJ-Munich/master
Browse files Browse the repository at this point in the history
Vespers on Dec 24 and 31
  • Loading branch information
APMarcello3 authored Nov 27, 2023
2 parents 65dc316 + 25886c6 commit 0c64cf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions web/cgi-bin/DivinumOfficium/Date.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ sub getweek {
my $n;

my $advent1 = getadvent($year);

my $christmas = date_to_ydays(25, 12, $year);
my $tDay = $tomorrow ? $day+1 : $day;

#Advent in december
if ($t >= $advent1) {
if ($t < ($advent1 + 28)) {
if ($t < $christmas) {
$n = 1 + floor(($t - $advent1) / 7);
if ($month == 11 || $day < 25) { return "Adv$n"; }
}
return "Nat$day";
return "Nat$tDay";
}

if ($month == 1 && $day < 7) {
Expand Down
3 changes: 2 additions & 1 deletion web/cgi-bin/horas/horascommon.pl
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ sub concurrence {
$ccomrank = 0;
} elsif ($rank < 2 # no 2nd Vespers of a Simplex
|| ($version =~ /196/ && $cwinner{Rank} =~ /Dominica/i && $rank < 5) # on any Sunday, nothing of a preceding III. cl feast
|| (($crank >= 6 || $cwinner =~ /01-01/) && !($rank == 2.1 || $rank == 2.99 || $rank >= 4.2 ) && $cwrank[0] !~ /Dominica|feria|in.*octava/i) # in 1st Vespers of Duplex I. cl. only commemoration of Feria major, Dominica (major), 8va privilegiata and Duplex II./I. cl
|| ($crank >= 6 && !($rank == 2.1 || $rank == 2.99 || $rank >= 4.2 ) && $cwrank[0] !~ /Dominica|feria|in.*octava/i) # in 1st Vespers of Duplex I. cl. only commemoration of Feria major, Dominica (major), 8va privilegiata and Duplex II./I. cl
|| ($cwinner =~ /12-25|01-01/) # on Christmas Eve and New Year's Eve, nothing of a preceding Sunday
|| ($crank >= 5 && !($rank == 2.1 || $rank >= 2.99) && $cwrank[0] !~ /Dominica|feria|in.*octava/i)) { # in 1st Vespers of Duplex II. cl. also commemoration of any Duplex
@dayname = @tomorrowname;
$vespera = 1;
Expand Down

0 comments on commit 0c64cf1

Please sign in to comment.