[TriLUG] Why does my "every second month" cron job run on odd-numbered months?
Brian via TriLUG
trilug at trilug.org
Thu Aug 28 13:10:54 EDT 2025
I wrote:
>> Odd-numbered months. Why? I would interpret "every second month" to
>> mean the even-numbered months. Is crontab.guru wrong? Am I wrong?
On 8/28/25 12:08, Paul Bennett via TriLUG wrote:
> Months are numbered starting from 1, right? I think we expect "every 2" to
> be "0, 2, 4, 6, ..." but if there is no zero it does feel right to see "1,
> 3, 5, 7, ..." as the next best thing. Maybe?
I call this the difference between "cardinal" and "ordinal" numbers.
Where we start counting (cardinal numbers) doesn't change which one is
first, second, etc. (ordinal numbers).
Whether you call January "0" or "1" doesn't change the fact that it's
"first", and February is "second".
That's my logic, anyway.
-B
More information about the TriLUG
mailing list