diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-09 15:12:02 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-10 17:42:18 +0900 |
commit | 83bdc2f00c4565a091d88399e5a315a96f6afed6 (patch) | |
tree | 70c27707e918014d242383e1689d0d2e85da1b75 /timev.rb | |
parent | cc33d07f46559bfd11098c6b39c7c59faa892af9 (diff) |
Simplify default values of `Time.at` [Bug #18293]
Diffstat (limited to 'timev.rb')
-rw-r--r-- | timev.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -267,8 +267,8 @@ class Time # :include: doc/time/nsec.rdoc # :include: doc/time/in.rdoc # - def self.at(time, subsec = (nosubsec = true), unit = (nounit = true), in: nil) - __builtin.time_s_at(time, subsec, unit, __builtin.arg!(:in), nosubsec, nounit) + def self.at(time, subsec = nil, unit = :microsecond, in: nil) + __builtin.time_s_at(time, subsec, unit, __builtin.arg!(:in)) end # Returns a new \Time object based the on given arguments. |