From 52a71df01bbd6c9517b5caf4ed896cc1ee6d84f2 Mon Sep 17 00:00:00 2001 From: stomar Date: Sat, 15 Dec 2018 21:28:34 +0000 Subject: time.c: [DOC] improve docs for tz argument of Time.new git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'time.c') diff --git a/time.c b/time.c index 255e5bfe69..8d272d91f3 100644 --- a/time.c +++ b/time.c @@ -2330,8 +2330,11 @@ time_init_1(int argc, VALUE *argv, VALUE time) * * +sec+ may have fraction if it is a rational. * - * +tz+ is the offset from UTC, or a timezone object. - * It can be a string such as "+09:00" or a number of seconds such as 32400. + * +tz+ specifies the timezone. + * It can be an offset from UTC, given either as a string such as "+09:00" + * or as a number of seconds such as 32400. + * Or it can be a timezone object, + * see {Timezone argument}[#class-Time-label-Timezone+argument] for details. * * a = Time.new #=> 2007-11-19 07:50:02 -0600 * b = Time.new #=> 2007-11-19 07:50:02 -0600 @@ -2355,9 +2358,6 @@ time_init_1(int argc, VALUE *argv, VALUE time) * (t6-t5)/3600.0 #=> 1.95 * (t8-t7)/3600.0 #=> 13.416666666666666 * - * Or it can be a timezone object. - * See {Timezone argument}[#class-Time-label-Timezone+argument] for - * details. */ static VALUE -- cgit v1.2.3