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
@@ -4505,6 +4505,9 @@ date_s__parse_internal(int argc, VALUE *argv, VALUE klass)
4505
4505
* <b>Note</b>:
4506
4506
* This method recognizes many forms in +string+,
4507
4507
* but it is not a validator.
4508
+
* For formats, see
4509
+
* {"Specialized Format Strings" in Formats for Dates and Times}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html#label-Specialized+Format+Strings]
4510
+
*
4508
4511
* If +string+ does not specify a valid date,
4509
4512
* the result is unpredictable;
4510
4513
* consider using Date._strptime instead.
@@ -4537,6 +4540,8 @@ date_s__parse(int argc, VALUE *argv, VALUE klass)
4537
4540
* <b>Note</b>:
4538
4541
* This method recognizes many forms in +string+,
4539
4542
* but it is not a validator.
4543
+
* For formats, see
4544
+
* {"Specialized Format Strings" in Formats for Dates and Times}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html#label-Specialized+Format+Strings]
4540
4545
* If +string+ does not specify a valid date,
4541
4546
* the result is unpredictable;
4542
4547
* consider using Date._strptime instead.
@@ -4671,7 +4676,7 @@ date_s_iso8601(int argc, VALUE *argv, VALUE klass)
4671
4676
* Date._rfc3339(string, limit: 128) -> hash
4672
4677
*
4673
4678
* Returns a hash of values parsed from +string+, which should be a valid
* All date objects are immutable; hence cannot modify themselves.
9446
+
* See also the specialized methods in
9447
+
* {"Specialized Format Strings" in Formats for Dates and Times}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html#label-Specialized+Format+Strings]
9482
9448
*
9483
-
* The concept of a date object can be represented as a tuple
9484
-
* of the day count, the offset and the day of calendar reform.
9485
-
*
9486
-
* The day count denotes the absolute position of a temporal
9487
-
* dimension. The offset is relative adjustment, which determines
9488
-
* decoded local time with the day count. The day of calendar
9489
-
* reform denotes the start day of the new style. The old style
9490
-
* of the West is the Julian calendar which was adopted by
9491
-
* Caesar. The new style is the Gregorian calendar, which is the
9492
-
* current civil calendar of many countries.
9493
-
*
9494
-
* The day count is virtually the astronomical Julian day number.
9495
-
* The offset in this class is usually zero, and cannot be
9496
-
* specified directly.
9497
-
*
9498
-
* A Date object can be created with an optional argument,
9499
-
* the day of calendar reform as a Julian day number, which
9500
-
* should be 2298874 to 2426355 or negative/positive infinity.
9501
-
* The default value is +Date::ITALY+ (2299161=1582-10-15).
9502
-
* See also sample/cal.rb.
9503
-
*
9504
-
* $ ruby sample/cal.rb -c it 10 1582
9505
-
* October 1582
9506
-
* S M Tu W Th F S
9507
-
* 1 2 3 4 15 16
9508
-
* 17 18 19 20 21 22 23
9509
-
* 24 25 26 27 28 29 30
9510
-
* 31
9511
-
*
9512
-
* $ ruby sample/cal.rb -c gb 9 1752
9513
-
* September 1752
9514
-
* S M Tu W Th F S
9515
-
* 1 2 14 15 16
9516
-
* 17 18 19 20 21 22 23
9517
-
* 24 25 26 27 28 29 30
9518
-
*
9519
-
* A Date object has various methods. See each reference.
9520
-
*
9521
-
* d = Date.parse('3rd Feb 2001')
9522
-
* #=> #<Date: 2001-02-03 ...>
9523
-
* d.year #=> 2001
9524
-
* d.mon #=> 2
9525
-
* d.mday #=> 3
9526
-
* d.wday #=> 6
9527
-
* d += 1 #=> #<Date: 2001-02-04 ...>
9528
-
* d.strftime('%a %d %b %Y') #=> "Sun 04 Feb 2001"
9529
-
*
9530
-
* === Argument +limit+
9449
+
* == Argument +limit+
9531
9450
*
9532
9451
* Certain singleton methods in \Date that parse string arguments
0 commit comments