From 482bbde6e25620b340e28423c08e3cee941c438b Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Jul 2018 07:46:38 +0000 Subject: time.c: [DOC] Time#localtime * time.c: state that Time#localtime does nothing when nothing changes. [ruby-core:87675] [Bug #14880] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'time.c') diff --git a/time.c b/time.c index 1f62f3699c..f48f0e29f3 100644 --- a/time.c +++ b/time.c @@ -3405,6 +3405,9 @@ time_localtime(VALUE time) * * t.localtime("+09:00") #=> 2000-01-02 05:15:01 +0900 * t.utc? #=> false + * + * If +utc_offset+ is not given and _time_ is local time, just return + * the receiver. */ static VALUE -- cgit v1.2.3