diff --git a/lib/time.rb b/lib/time.rb index 970932a200..b565130b50 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -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: #