1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Mentioned that Time.parse method is not validator

This commit is contained in:
Nobuyoshi Nakada 2020-06-20 19:21:35 +09:00
parent 956d187223
commit 995923b7f9
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -272,6 +272,11 @@ class Time
# Takes a string representation of a Time and attempts to parse it
# using a heuristic.
#
# This method **does not** function as a validator. If the input
# string does not match valid formats strictly, you may get a
# cryptic result. Should consider to use `Time.strptime` instead
# of this method as possible.
#
# require 'time'
#
# Time.parse("2010-10-31") #=> 2010-10-31 00:00:00 -0500