Skip to content

Commit 5ab0b91

Browse files
nobuk0kubun
authored andcommitted
[Backport #21141] [DOC] Refine description of Time#utc?
1 parent bd99a2e commit 5ab0b91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

time.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4012,13 +4012,16 @@ time_eql(VALUE time1, VALUE time2)
40124012
* # => 2000-01-01 20:15:01 UTC
40134013
* utc.utc? # => true
40144014
*
4015-
* Note that only +Time+ objects created with these methods
4016-
* considered in UTC:
4015+
* +Time+ objects created with these methods are considered to be in
4016+
* UTC:
40174017
*
40184018
* * Time.utc
40194019
* * Time#utc
40204020
* * Time#getutc
40214021
*
4022+
* Objects created in other ways will not be treated as UTC even if
4023+
* the environment variable "TZ" is "UTC".
4024+
*
40224025
* Related: Time.utc.
40234026
*/
40244027

0 commit comments

Comments
 (0)