зеркало из https://github.com/github/ruby.git
[DOC] Match each `Time.now` for comparison [ci skip]
This commit is contained in:
Родитель
116e52f3b4
Коммит
83244b8c89
4
timev.rb
4
timev.rb
|
@ -211,7 +211,7 @@ class Time
|
|||
# This is the same as Time.new without arguments.
|
||||
#
|
||||
# Time.now # => 2009-06-24 12:39:54 +0900
|
||||
# Time.now(in: '+04:00') # => 2021-04-30 01:56:44 +0400
|
||||
# Time.now(in: '+04:00') # => 2009-06-24 07:39:54 +0400
|
||||
#
|
||||
# Parameter:
|
||||
# :include: doc/time/in.rdoc
|
||||
|
@ -225,7 +225,7 @@ class Time
|
|||
# and optional keyword argument +in+:
|
||||
#
|
||||
# Time.at(Time.new) # => 2021-04-26 08:52:31.6023486 -0500
|
||||
# Time.at(Time.new, in: '+09:00') # => 2021-04-26 22:52:32.1480341 +0900
|
||||
# Time.at(Time.new, in: '+09:00') # => 2021-04-26 22:52:31.6023486 +0900
|
||||
#
|
||||
# _Seconds_
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче