Skip to content

Commit 4ca521e

Browse files
committed
merge revision(s) 0691994, 51bc992, 42daa6c: [Backport #21141]
[Bug #21141] [DOC] Clarify what time is in UTC [Bug #21141] [DOC] Refine description of `Time#utc?` [Bug #21141] [DOC] Fix indentation
1 parent a67e9e4 commit 4ca521e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

time.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3996,10 +3996,21 @@ time_eql(VALUE time1, VALUE time2)
39963996
* now = Time.now
39973997
* # => 2022-08-18 10:24:13.5398485 -0500
39983998
* now.utc? # => false
3999+
* now.getutc.utc? # => true
39994000
* utc = Time.utc(2000, 1, 1, 20, 15, 1)
40004001
* # => 2000-01-01 20:15:01 UTC
40014002
* utc.utc? # => true
40024003
*
4004+
* +Time+ objects created with these methods are considered to be in
4005+
* UTC:
4006+
*
4007+
* * Time.utc
4008+
* * Time#utc
4009+
* * Time#getutc
4010+
*
4011+
* Objects created in other ways will not be treated as UTC even if
4012+
* the environment variable "TZ" is "UTC".
4013+
*
40034014
* Related: Time.utc.
40044015
*/
40054016

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
1212
#define RUBY_VERSION_TEENY 7
1313
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
14-
#define RUBY_PATCHLEVEL 142
14+
#define RUBY_PATCHLEVEL 143
1515

1616
#include "ruby/version.h"
1717
#include "ruby/internal/abi.h"

0 commit comments

Comments
 (0)