Skip to content

Commit 51bc992

Browse files
committed
[Bug #21141] [DOC] Refine description of Time#utc?
1 parent c5f30e9 commit 51bc992

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
@@ -4020,13 +4020,16 @@ time_eql(VALUE time1, VALUE time2)
40204020
* # => 2000-01-01 20:15:01 UTC
40214021
* utc.utc? # => true
40224022
*
4023-
* Note that only +Time+ objects created with these methods
4024-
* considered in UTC:
4023+
* +Time+ objects created with these methods are considered to be in
4024+
* UTC:
40254025
*
40264026
* * Time.utc
40274027
* * Time#utc
40284028
* * Time#getutc
40294029
*
4030+
* Objects created in other ways will not be treated as UTC even if
4031+
* the environment variable "TZ" is "UTC".
4032+
*
40304033
* Related: Time.utc.
40314034
*/
40324035

0 commit comments

Comments
 (0)