ruby-changes:72417
From: BurdetteLamar <ko1@a...>
Date: Tue, 5 Jul 2022 04:13:08 +0900 (JST)
Subject: [ruby-changes:72417] 5fe86666a5 (master): [ruby/date] Enhanced RDoc
https://git.ruby-lang.org/ruby.git/commit/?id=5fe86666a5 From 5fe86666a58c9d73570815a0860372c2ce335234 Mon Sep 17 00:00:00 2001 From: BurdetteLamar <BurdetteLamar@Y...> Date: Mon, 4 Jul 2022 08:53:18 -0500 Subject: [ruby/date] Enhanced RDoc https://github.com/ruby/date/commit/e36690f70e --- ext/date/date_core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ext/date/date_core.c b/ext/date/date_core.c index ae9a0c4007..4381234598 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -3303,6 +3303,18 @@ static VALUE d_lite_plus(VALUE, VALUE); https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L3303 * Date.jd(2451945).to_s # => "2001-02-04" * Date.jd(0).to_s # => "-4712-01-01" * + * The returned date is: + * + * - Gregorian, if the argument is greater than or equal to +start+: + * + * Date::ITALY # => 2299161 + * Date.jd(Date::ITALY).gregorian? # => true + * Date.jd(Date::ITALY + 1).gregorian? # => true + * + * - Julian, otherwise + * + * Date.jd(Date::ITALY - 1).julian? # => true + * * See {Argument start}[rdoc-ref:Date@Argument+start]. * * Related: Date.new. -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/