summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-12-15 16:57:24 +0900
committerNobuyoshi Nakada <[email protected]>2024-12-15 16:57:24 +0900
commit966458199d870b88b42898d4a063b487c1ef6b00 (patch)
treea8418a5ecdae71c57465a4f24dcba07dbeff82ce
parenta2e4100472fd50a61162eaec35ce558fdcc1fe83 (diff)
[Bug #20951] [DOC] About UTC offset calculation after `utc_to_local`
-rw-r--r--doc/_timezones.rdoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/_timezones.rdoc b/doc/_timezones.rdoc
index 94dbd8eeb9..e355d699b4 100644
--- a/doc/_timezones.rdoc
+++ b/doc/_timezones.rdoc
@@ -76,6 +76,9 @@ The timezone methods are:
keyword argument +in:+, and when Time#getlocal or Time#localtime is called
with +tz+ as the value for positional argument +zone+.
+ The UTC offset will be calculated as the difference between the
+ original time and the returned object as an +Integer+.
+
Argument:: a {Time-like object}[rdoc-ref:Time@Time-Like+Objects].
Returns:: a {Time-like object}[rdoc-ref:Time@Time-Like+Objects] in the local timezone.