[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [ANN] date module version 2.2 released
- From: Thijs Schreijer <thijs@...>
- Date: Mon, 19 Jul 2021 11:54:45 +0000
I’m happy to announce a new version of the `date` module. There is
one addition; “centuryflip”, which allows one to set (a global)
setting how to parse 2 digit years (can be set and read).
The default remains to set 2 digit years in the 19xx range. But it
can now be altered, eg; after calling `date.setcenturyflip(50)`,
the years 00-49 will become 20xx, and years 50-99 will become 19xx.
Since the default is 0, it is fully backwards compatible.
Source is on GitHub  as are the docs , installation is
easiest using LuaRocks.