1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Match each Time.now for comparison [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-08-23 14:12:21 +09:00
parent 116e52f3b4
commit 83244b8c89
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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_
#