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.
description says: "Date parameter could be a string or a Date object."
description says: "Date parameter could be a string or a Date object."
For all those who get an error 'NoMethodError...' please note that kata description says: "Date parameter could be a string or a Date object." Good luck.
Hi LogaJ, you shouldn't make any assumptions, because kata description clearly states: "Date parameter could be a string or a Date object."
thanks for the idea, however i did a simpler check for now.
a bit late, but i think i fixed "this" issue. talking about uninformative test output, this is a game kata, so not everything should be straightforward ;] also i give a hint to search for a key, so in my opinion that should be enough.
SomeGuy, your code produces double spaces between words - that's the problem.
Hello all,
could you (those who didn't) please provide your solutions for further testing? Because some of your solutions have additional spaces and that's why they don't work. I. e. SnooperSnayk solution makes two spaces between words instead of one... For specialkv solution I suspect there might be a space at the end.
Please make sure spaces are alright in your produced sentences.
Hi, I will take a deeper look into your comment when I have time ;]
Hi Fran,
ok, you made me tripple-check this and finally convinced me! I was wrong as many others, sorry. :)
So for the sake of peace I removed test cases which use years before 1582.
Should I do something more?
And thanks for your stubbornness to prove me wrong ;]
hi, ok @jhoffner, i will analyze these comments when i have more time.
http://www.timeanddate.com/calendar/monthly.html?year=2&month=12&country=22
http://www.timeanddate.com/calendar/monthly.html?year=100&month=12&country=22
Please read the description carefully again, you need to use Gregorian calendar and not United States calendar (whatever it is). Also there are some really good hints in the comments. Dates are not straightforward things apparently...
I really hope that all issues will be fixed, but no response from ankr yet...
That's sad because it could be such a great kata.
thank you christianhammer for helping with an answer ;]
what a troublesome kata i have created... ;]
FlorianGrundig, your see new Date('0001 12 25') in JS tries to parse date and does it wrong in this case, it assumes that 25 is a year, so you get 2025-01-12 date...
Loading more items...