Re:History of Zero-Based Months?
by pvorb on Saturday August 27, 2022 @02:44PM
(#32621853)
Yes, that was always my theory for why months are 0-based. Back in the days of early Unix, this might have had a tiny performance benefit that was enough for them to choose that implementation.
[ Parent
| on HN ]
Re:History of Zero-Based Months?
by zzo38computer on Saturday August 27, 2022 @06:55PM
(#32624064)
I think that it should be unnecessary. The address of the array could be adjusted at compile-time so that one-based index numbers will be possible.