Perl: the Markov chain saw | |
PerlMonks |
Re: Gettting the last Friday of every month using Time::Pieceby Jim (Curate) |
on Jun 30, 2014 at 18:17 UTC ( [id://1091760]=note: print w/replies, xml ) | Need Help?? |
From the Introduction to the Wikipedia article titled Determination of the day of the week: The basic approach of nearly all of the methods to calculate the day of the week begins by starting from an ‘anchor date’: a known pair (such as January 1, 1800 as a Wednesday), determining the number of days between the known day and the day that you are trying to determine, and using arithmetic modulo 7 to find a new numerical day of the week.
In Section
Seekers of Perl Wisdom
|
|