[DOC] Add links about timezones

This commit is contained in:
Nobuyoshi Nakada 2023-11-13 17:45:12 +09:00
parent 24e0b185ab
commit 9d7ac1ba1c
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
2 changed files with 4 additions and 2 deletions

View file

@ -57,7 +57,9 @@ in the range <tt>-86399..86399</tt>:
=== Timezone Objects === Timezone Objects
The zone value may be an object responding to certain timezone methods. The zone value may be an object responding to certain timezone methods, an
instance of {Timezone}[https://github.com/panthomakos/timezone] and
{TZInfo}[https://tzinfo.github.io] for example.
The timezone methods are: The timezone methods are:

View file

@ -66,7 +66,7 @@
# #
# Time.new(2002, 10, 31, 2, 2, 2, "+02:00") #=> 2002-10-31 02:02:02 +0200 # Time.new(2002, 10, 31, 2, 2, 2, "+02:00") #=> 2002-10-31 02:02:02 +0200
# #
# Or a timezone object: # Or {a timezone object}[rdoc-ref:timezones.rdoc@Timezone+Objects]:
# #
# zone = timezone("Europe/Athens") # Eastern European Time, UTC+2 # zone = timezone("Europe/Athens") # Eastern European Time, UTC+2
# Time.new(2002, 10, 31, 2, 2, 2, zone) #=> 2002-10-31 02:02:02 +0200 # Time.new(2002, 10, 31, 2, 2, 2, zone) #=> 2002-10-31 02:02:02 +0200