summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-13 17:45:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-24 19:38:55 +0900
commit9d7ac1ba1ca279df14400814516fab14240cdc35 (patch)
tree2d1ce3dfb6f17b5753993919a8e09015af144794
parent24e0b185ab7ea67eea298fc2ad7985f7ce4deba1 (diff)
[DOC] Add links about timezones
-rw-r--r--doc/timezones.rdoc4
-rw-r--r--timev.rb2
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/timezones.rdoc b/doc/timezones.rdoc
index 5b3a224d14..949e0f65c1 100644
--- a/doc/timezones.rdoc
+++ b/doc/timezones.rdoc
@@ -57,7 +57,9 @@ in the range <tt>-86399..86399</tt>:
=== 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:
diff --git a/timev.rb b/timev.rb
index e710dc6990..80de049a07 100644
--- a/timev.rb
+++ b/timev.rb
@@ -66,7 +66,7 @@
#
# 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
# Time.new(2002, 10, 31, 2, 2, 2, zone) #=> 2002-10-31 02:02:02 +0200