r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

View all comments

Show parent comments

237

u/MighMoS Dec 02 '15

0-11 for months isn't madness. Its when months are numbered 0-11 and days are numbered 1-31 and years are stored with an offset of 1900. THAT is madness.

16

u/charrondev Dec 02 '15

Which is why you use Joda Time.

61

u/Jestar342 Dec 02 '15

Joda Time

The .NET port of this has such a better name: Noda Time ("Know the time") :D

1

u/charrondev Dec 02 '15

I think the j is for java though. But regardless of name it definitely makes life far easier when working with dates. Although apparently Java 8s DateTime api is just as good. Doesn't help me as far as android development goes though.

→ More replies (2)