From 966458199d870b88b42898d4a063b487c1ef6b00 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 15 Dec 2024 16:57:24 +0900 Subject: [PATCH] [Bug #20951] [DOC] About UTC offset calculation after `utc_to_local` --- doc/_timezones.rdoc | 3 +++ 1 file changed, 3 insertions(+) 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.