[DOC] Enhanced RDoc for Time (#6255)

Treats:
    #utc
    #hash
    #localtime
This commit is contained in:
Burdette Lamar 2022-08-21 11:36:36 -05:00 committed by GitHub
parent b043dd9c5d
commit 936327a519
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

View file

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