Project

General

Profile

Actions

Feature #17039

closed

Remove Time#succ

Added by znz (Kazuhiro NISHIYAMA) over 4 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:99249]

Description

Time#succ is obsolete since 1.9.2.

% docker run -it --rm rubylang/all-ruby env ALL_RUBY_SINCE=ruby-1.8 ./all-ruby -e 'Time.at(0).succ'
ruby-1.8.0            -e:1: undefined method `succ' for Thu Jan 01 00:00:00 UTC 1970:Time (NoMethodError)
                  exit 1
ruby-1.8.1
...
ruby-1.9.2-preview1
ruby-1.9.2-preview3   -e:1: warning: Time#succ is obsolete; use time + 1
...
ruby-2.7.1            -e:1: warning: Time#succ is obsolete; use time + 1
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0