Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
What is the expected result if dob is a leap day?
Ruby:
2200-05-16
is considered not yet born, but it is before2200-06-15
and so should've been born.C++ has an error in tests:
Also sample tests are wrong. They assume a current date of 2200-01-01.
Trying C++ and having a concern: if I was born in
"2002-01-01"
and the date (const TIME) is"2200-06-15"
, then my next birthday should be on"2201-01-01"
???Why do people think that performing calculations on abstract "dynamic" values is a good idea? Different months and years have different amounts of days - could you explain how am I supposed to tell the number of months and years since/until some date? What would be the result for
2199-10-03
(which is exactly90
days before2200-01-01
)?"1 month and 60 days"
?"1 month and 59 days"
?"2 months and 29 days"
? Something else?