[ruby-core:104586] [Ruby master Feature#17039] Remove Time#succ
From:
zn@...
Date:
2021-07-12 05:50:08 UTC
List:
ruby-core #104586
Issue #17039 has been updated by znz (Kazuhiro NISHIYAMA).
Status changed from Open to Closed
Removed at commit:7817a438eb1803e7b3358f43bd1f38479badfbdc
----------------------------------------
Feature #17039: Remove Time#succ
https://bugs.ruby-lang.org/issues/17039#change-92869
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Closed
* Priority: Normal
----------------------------------------
`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
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>