From e133d0c7a117ad8e7001ccccf694c51695c60051 Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 6 Mar 2024 19:44:51 +0300 Subject: [PATCH] [ruby/time] Document exception thrown by `Time.strptime` https://github.com/ruby/time/commit/f9d078082f --- lib/time.rb | 2 ++ 1 file changed, 2 insertions(+) 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: #