mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
b043dd9c5d
commit
936327a519
Notes:
git
2022-08-22 01:37:05 +09:00
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
5 changed files with 87 additions and 46 deletions
4
timev.rb
4
timev.rb
|
@ -217,8 +217,8 @@ class Time
|
|||
# Time.now # => 2009-06-24 12:39:54 +0900
|
||||
# Time.now(in: '+04:00') # => 2009-06-24 07:39:54 +0400
|
||||
#
|
||||
# Parameter:
|
||||
# :include: doc/time/in.rdoc
|
||||
# For forms of argument +zone+, see
|
||||
# {Timezone Specifiers}[rdoc-ref:doc/timezone_specifiers.rdoc].
|
||||
def self.now(in: nil)
|
||||
Primitive.time_s_now(Primitive.arg!(:in))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue