diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-05 00:24:23 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-16 22:52:59 +0900 |
commit | 8c272f44816f098c1e057c72a47451efc8cd1739 (patch) | |
tree | b9c180b64a41b37e761c84001275816f283e3dfb /benchmark/time_parse.yml | |
parent | ee7a338d2b21a84d194015c3680bd2a95c0dd23f (diff) |
[Feature #18033] Make Time.new parse time strings
`Time.new` now parses strings such as the result of `Time#inspect`
and restricted ISO-8601 formats.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4825
Diffstat (limited to 'benchmark/time_parse.yml')
-rw-r--r-- | benchmark/time_parse.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/time_parse.yml b/benchmark/time_parse.yml index a6d6948b9c..6060b58bc6 100644 --- a/benchmark/time_parse.yml +++ b/benchmark/time_parse.yml @@ -6,3 +6,5 @@ benchmark: - Time.iso8601(iso8601) - Time.parse(iso8601) - Time.parse(inspect) + - Time.new(iso8601) rescue Time.iso8601(iso8601) + - Time.new(inspect) rescue Time.parse(inspect) |