зеркало из https://github.com/github/ruby.git
[ruby/time] Document exception thrown by `Time.strptime`
https://github.com/ruby/time/commit/f9d078082f
This commit is contained in:
Родитель
7951b349ab
Коммит
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:
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче