[前][次][番号順一覧][スレッド一覧]

ruby-changes:72412

From: BurdetteLamar <ko1@a...>
Date: Tue, 5 Jul 2022 04:13:04 +0900 (JST)
Subject: [ruby-changes:72412] 24c80aea0e (master): [ruby/date] Enhanced RDoc

https://git.ruby-lang.org/ruby.git/commit/?id=24c80aea0e

From 24c80aea0eb0d621861725428319b32236a050f8 Mon Sep 17 00:00:00 2001
From: BurdetteLamar <BurdetteLamar@Y...>
Date: Sun, 3 Jul 2022 15:08:46 -0500
Subject: [ruby/date] Enhanced RDoc

https://github.com/ruby/date/commit/ac25182c66
---
 ext/date/date_core.c | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index 4719a0db71..12cc83305b 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -2468,7 +2468,8 @@ date_s__valid_jd_p(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2468
  * call-seq:
  *   Date.valid_jd?(jd, start = Date::ITALY) -> true
  *
- * Returns +true+; implemented for compatibility.
+ * Implemented for compatibility;
+ * returns +true+ unless +jd+ is invalid (i.e., non a Numeric).
  *
  *   Date.valid_jd?(2451944) # => true
  *
@@ -7420,19 +7421,6 @@ datetime_s_ordinal(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L7421
     return ret;
 }
 
-/*
- * call-seq:
- *    DateTime.civil([year=-4712[, month=1[, mday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]])  ->  datetime
- *    DateTime.new([year=-4712[, month=1[, mday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]])    ->  datetime
- *
- * Creates a DateTime object denoting the given calendar date.
- *
- *    DateTime.new(2001,2,3)	#=> #<DateTime: 2001-02-03T00:00:00+00:00 ...>
- *    DateTime.new(2001,2,3,4,5,6,'+7')
- *				#=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
- *    DateTime.new(2001,-11,-26,-20,-55,-54,'+7')
- *				#=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
- */
 static VALUE
 datetime_s_civil(int argc, VALUE *argv, VALUE klass)
 {
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]