[ruby/time] Document exception thrown by Time.strptime
https://github.com/ruby/time/commit/f9d078082f
This commit is contained in:
parent
7951b349ab
commit
e133d0c7a1
@ -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:
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user