You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* - A numeric (compares <tt>self.jd</tt> to +other+):
6830
+
*
6831
+
* d === 2459788 # => true
6832
+
* d === 2459787 # => false
6833
+
* d === 2459786 # => false
6834
+
* d === d.jd # => true
6835
+
*
6836
+
* - An object not comparable:
6837
+
*
6838
+
* d === Object.new # => nil
6839
+
*
6821
6840
*/
6822
6841
staticVALUE
6823
6842
d_lite_equal(VALUEself, VALUEother)
@@ -6880,12 +6899,14 @@ static VALUE strftimev(const char *, VALUE,
6880
6899
6881
6900
/*
6882
6901
* call-seq:
6883
-
* d.to_s -> string
6902
+
* to_s -> string
6884
6903
*
6885
-
* Returns a string in an ISO 8601 format. (This method doesn't use the
6886
-
* expanded representations.)
6904
+
* Returns a string representation of the date in +self+
6905
+
* in {ISO 8601 extended date format}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html#label-ISO+8601+Format+Specifications]
6906
+
* (<tt>'%Y-%m-%d'</tt>):
6907
+
*
6908
+
* Date.new(2001, 2, 3).to_s # => "2001-02-03"
6887
6909
*
6888
-
* Date.new(2001,2,3).to_s #=> "2001-02-03"
6889
6910
*/
6890
6911
staticVALUE
6891
6912
d_lite_to_s(VALUEself)
@@ -6966,14 +6987,13 @@ mk_inspect(union DateData *x, VALUE klass, VALUE to_s)
@@ -7155,12 +7175,12 @@ date_strftime_internal(int argc, VALUE *argv, VALUE self,
7155
7175
7156
7176
/*
7157
7177
* call-seq:
7158
-
* strftime(format = '%F') -> string
7178
+
* strftime(format = '%F') -> string
7159
7179
*
7160
-
* Returns a string representation of +self+,
7180
+
* Returns a string representation of the date in +self+,
7161
7181
* formatted according the given +format+:
7162
7182
*
7163
-
* Date.today.strftime # => "2022-07-01"
7183
+
* Date.new(2001, 2, 3).strftime # => "2001-02-03"
7164
7184
*
7165
7185
* For other formats, see
7166
7186
* {Formats for Dates and Times}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html].
@@ -7192,13 +7212,17 @@ strftimev(const char *fmt, VALUE self,
7192
7212
7193
7213
/*
7194
7214
* call-seq:
7195
-
* d.asctime -> string
7196
-
* d.ctime -> string
7215
+
* asctime -> string
7216
+
*
7217
+
* Equivalent to #strftime with argument <tt>'%a %b %e %T %Y'</tt>
7218
+
* (or its {shorthand form}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html#label-Shorthand+Conversion+Specifiers]
7219
+
* <tt>'%c'</tt>):
7197
7220
*
7198
-
* Returns a string in asctime(3) format (but without "\n\0" at the
7199
-
* end). This method is equivalent to strftime('%c').
* Equivalent to #strftime with argument <tt>'%Y-%m-%d'</tt>
7238
+
* (or its {shorthand form}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html#label-Shorthand+Conversion+Specifiers]
7239
+
* <tt>'%F'</tt>);
7213
7240
*
7214
-
* This method is equivalent to strftime('%F').
7241
+
* Date.new(2001, 2, 3).iso8601 # => "2001-02-03"
7242
+
*
7243
+
* Date#xmlschema is an alias for Date#iso8601.
7215
7244
*/
7216
7245
staticVALUE
7217
7246
d_lite_iso8601(VALUEself)
@@ -7221,9 +7250,13 @@ d_lite_iso8601(VALUE self)
7221
7250
7222
7251
/*
7223
7252
* call-seq:
7224
-
* d.rfc3339 -> string
7253
+
* rfc3339 -> string
7254
+
*
7255
+
* Equivalent to #strftime with argument <tt>'%FT%T%:z'</tt>;
7256
+
* see {Formats for Dates and Times}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html]:
0 commit comments