[Backport #21141] [DOC] Refine description of Time#utc?

This commit is contained in:
Nobuyoshi Nakada 2025-03-24 15:43:40 +09:00 committed by Takashi Kokubun
parent bd99a2ef6a
commit 5ab0b9143a

7
time.c
View file

@ -4012,13 +4012,16 @@ time_eql(VALUE time1, VALUE time2)
* # => 2000-01-01 20:15:01 UTC
* utc.utc? # => true
*
* Note that only +Time+ objects created with these methods
* considered in UTC:
* +Time+ objects created with these methods are considered to be in
* UTC:
*
* * Time.utc
* * Time#utc
* * Time#getutc
*
* Objects created in other ways will not be treated as UTC even if
* the environment variable "TZ" is "UTC".
*
* Related: Time.utc.
*/