time: document the return value of time.Parse when parsing fails #23933
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Current implementation (as of this submission) of
time.Parse
always returns a zerotime.Time{}
value when it hits an error. It would be nice to document this and have it as a part of API, as it would simplify some use cases.The text was updated successfully, but these errors were encountered: