The default current century 🤯
A 2-digit year will default to « current century ». This one starts in 1969! To avoid surprises, it’s best to use strptime
, which also validates the format.
However, parse
allows you to avoid specifying « the current century ».
Bonus: the _parse
and _strptime
methods returning a hash can be very useful.