Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Proper handling of invalid moments #2624
Implement proper handling of invalid moments across all methods.
The current situation is that only format will display moments as invalid, but most other methods will kind of work with some "undefined behavior" Date object stored underneath.
Now all methods are predictable (I added tests) and work almost like NaNs -- operations involving them result in more NaNs and boolean checks return false.