Draft
DateParse Function
Loading description...
Mathematics
Fundamentals
Parsing
Date Time
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Hi,
'S'
should return None while it's supposed to be taken as's'
.None
when the value is negative? A negative timedelta makes sense.Cheers
What is
DateParser
, and why is it preloaded? Users do not have to implement it, so why is it tested?in the description of Kata i sayd, you have class DateParser, and this class have list of function. You need create DateParse Function to optimize this class(
in this Kata you need optimize class, but you also can make you own function without DateParser class function's.
This does not make much sense. Either you need the DateParse class or not? My solution does not have the class, but still passes tests. Tests verify correcthess of the preloaded class, and not of my class. Why? What exactly is tested? My class is not tested, because I do not have it.
aaa
,bbb
, andccc
. Please assign some meaningful names to the variables.first
andsecond
are also not very fortunate names, maybe something likefrom
/to
orsource
/target
would be better?okay, i go fix it
sanks for your example, now work correct i think
date_parse
and notDateParse
.Why is there Python code in Javascript translation? I think that Javascript was added by accident and needs to be removed.
sory, i go fix it
Thank you, okay i fix all?
aaa
,bbb
,ccc
?Just to let you know, when a kata gets unpublished due to issues, you do not have to create a new one. You can fix it and publish it again.
why not?
okey, i add random test's
negative values not correct, i think -1 very nice solution. This kata for new members like 7-8 rang
and i think -50 seconds isn't correct. If we fantasy about this => okay, but in real this is uncorrect value, i think user can take a exception or False, but stopped at -1.
-1 is a very bad choice design-wise. For Python, an error or
None
would be much better in my opinion.okay, None is the better solution, sanks