[ruby/time] Document exception thrown by Time.strptime

https://github.com/ruby/time/commit/f9d078082f
This commit is contained in:
Artur 2024-03-06 19:44:51 +03:00 committed by git
parent 7951b349ab
commit e133d0c7a1

View File

@ -391,6 +391,8 @@ class Time
# heuristic to detect the format of the input string, you provide
# a second argument that describes the format of the string.
#
# Raises `ArgumentError` if the date or format is invalid.
#
# If a block is given, the year described in +date+ is converted by the
# block. For example:
#