ruby-changes:61876
From: Nobuyoshi <ko1@a...>
Date: Sun, 21 Jun 2020 16:19:24 +0900 (JST)
Subject: [ruby-changes:61876] 956d187223 (master): [ruby/date] [DOC] Mentioned alternative `strptime` methods
https://git.ruby-lang.org/ruby.git/commit/?id=956d187223 From 956d18722384b01690040de8828eb8f81c1bfd97 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 20 Jun 2020 19:08:01 +0900 Subject: [ruby/date] [DOC] Mentioned alternative `strptime` methods https://github.com/ruby/date/commit/5f4ac92947 diff --git a/ext/date/date_core.c b/ext/date/date_core.c index ed7bff0..451ce7e 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -4349,7 +4349,8 @@ date_s__parse_internal(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L4349 * * This method **does not** function as a validator. If the input * string does not match valid formats strictly, you may get a cryptic - * result. + * result. Should consider to use `Date._strptime` or + * `DateTime._strptime` instead of this method as possible. * * If the optional second argument is true and the detected year is in * the range "00" to "99", considers the year a 2-digit form and makes @@ -4372,7 +4373,8 @@ date_s__parse(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L4373 * * This method **does not** function as a validator. If the input * string does not match valid formats strictly, you may get a cryptic - * result. + * result. Should consider to use `Date.strptime` instead of this + * method as possible. * * If the optional second argument is true and the detected year is in * the range "00" to "99", considers the year a 2-digit form and makes @@ -8012,7 +8014,8 @@ datetime_s_strptime(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L8014 * * This method **does not** function as a validator. If the input * string does not match valid formats strictly, you may get a cryptic - * result. + * result. Should consider to use `DateTime.strptime` instead of this + * method as possible. * * If the optional second argument is true and the detected year is in * the range "00" to "99", makes it full. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/