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.
Author solution does not count individual days for months and quarters. It'll happily say
get_epoch('2019-01-31','m','2019-02-01') === 1
when it's a 1-day period.Requirement is under-specified. Do we round up, round down, or round to nearest for weeks, months and quarters? How to count months and quarters?
Needs Random Tests
Sample tests