summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorBurdetteLamar <BurdetteLamar@Yahoo.com>2022-07-04 08:53:18 -0500
committergit <svn-admin@ruby-lang.org>2022-07-05 04:12:49 +0900
commit5fe86666a58c9d73570815a0860372c2ce335234 (patch)
tree952dac45eff235c5a557f2d541b8db6c13db8557 /ext/date
parente323d8e6a20755342d008b86283511c98da04b3d (diff)
downloadruby-5fe86666a58c9d73570815a0860372c2ce335234.tar.gz
[ruby/date] Enhanced RDoc
https://github.com/ruby/date/commit/e36690f70e
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/date_core.c12
1 files changed, 12 insertions, 0 deletions
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);
* 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.