Only few days ago I was thinking that numbering should start with zero, then things will be easier.
[1-based index]
Year 2016 -> Century 21 -> Millennium 3
New year on 2017-01-01 01:01:01
[0-based index]
Year 2015 -> Century 20 -> Millennium 2
New year on 2016-00-00 00:00:00 :-)