@@ -4345,8 +4345,11 @@ date_s__parse_internal(int argc, VALUE *argv, VALUE klass)
4345
4345
* Date._parse(string[, comp=true]) -> hash
4346
4346
*
4347
4347
* Parses the given representation of date and time, and returns a
4348
- * hash of parsed elements. This method does not function as a
4349
- * validator.
4348
+ * hash of parsed elements.
4349
+ *
4350
+ * This method **does not** function as a validator. If the input
4351
+ * string does not match valid formats strictly, you may get a cryptic
4352
+ * result.
4350
4353
*
4351
4354
* If the optional second argument is true and the detected year is in
4352
4355
* the range "00" to "99", considers the year a 2-digit form and makes
@@ -4365,7 +4368,11 @@ date_s__parse(int argc, VALUE *argv, VALUE klass)
4365
4368
* Date.parse(string='-4712-01-01'[, comp=true[, start=Date::ITALY]]) -> date
4366
4369
*
4367
4370
* Parses the given representation of date and time, and creates a
4368
- * date object. This method does not function as a validator.
4371
+ * date object.
4372
+ *
4373
+ * This method **does not** function as a validator. If the input
4374
+ * string does not match valid formats strictly, you may get a cryptic
4375
+ * result.
4369
4376
*
4370
4377
* If the optional second argument is true and the detected year is in
4371
4378
* the range "00" to "99", considers the year a 2-digit form and makes
@@ -8001,7 +8008,11 @@ datetime_s_strptime(int argc, VALUE *argv, VALUE klass)
8001
8008
* DateTime.parse(string='-4712-01-01T00:00:00+00:00'[, comp=true[, start=Date::ITALY]]) -> datetime
8002
8009
*
8003
8010
* Parses the given representation of date and time, and creates a
8004
- * DateTime object. This method does not function as a validator.
8011
+ * DateTime object.
8012
+ *
8013
+ * This method **does not** function as a validator. If the input
8014
+ * string does not match valid formats strictly, you may get a cryptic
8015
+ * result.
8005
8016
*
8006
8017
* If the optional second argument is true and the detected year is in
8007
8018
* the range "00" to "99", makes it full.
0 commit comments