Skip to content

Commit 0691994

Browse files
committed
[Bug #21141] [DOC] Clarify what time is in UTC
1 parent 35920f7 commit 0691994

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

time.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4015,10 +4015,18 @@ time_eql(VALUE time1, VALUE time2)
40154015
* now = Time.now
40164016
* # => 2022-08-18 10:24:13.5398485 -0500
40174017
* now.utc? # => false
4018+
* now.getutc.utc? # => true
40184019
* utc = Time.utc(2000, 1, 1, 20, 15, 1)
40194020
* # => 2000-01-01 20:15:01 UTC
40204021
* utc.utc? # => true
40214022
*
4023+
* Note that only +Time+ objects created with these methods
4024+
* considered in UTC:
4025+
*
4026+
* * Time.utc
4027+
* * Time#utc
4028+
* * Time#getutc
4029+
*
40224030
* Related: Time.utc.
40234031
*/
40244032

0 commit comments

Comments
 (0)