Draft

DateParser function

Description
Loading description...
Fundamentals
Parsing
Date Time
  • Please sign in or sign up to leave a comment.
  • rowcased Avatar

    No Random Tests

  • hobovsky Avatar
    • The "Parser" name does not really make sense. I imagine "parsing" as transformation form a textual form, and this is not what really happens here.
    • Returning -1 for negative inputs does not seem to be the most fortunate design. If negative values are invalid input, then this should be signalled in a way appropriate for each language (throwing an exception of an appropriate type, raising an error, returning Error type). But why would the negative values be wrong at all? I imagine they would make sense if interpreted as "time in the past", or something.