From f9d078082f7a1e26485ce2bb9d256e735331f7a7 Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 6 Mar 2024 19:44:51 +0300 Subject: [PATCH] Document exception thrown by `Time.strptime` --- lib/time.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/time.rb b/lib/time.rb index 970932a..b565130 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -391,6 +391,8 @@ def parse(date, now=self.now) # 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: #