aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-15 21:28:34 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-15 21:28:34 +0000
commit52a71df01bbd6c9517b5caf4ed896cc1ee6d84f2 (patch)
tree84ab11978d6619bd0b52f86971ffb0c5e8a26601 /time.c
parentc3641d5b241fd1d35016e3b5bbee0ddbf75b0279 (diff)
downloadruby-52a71df01bbd6c9517b5caf4ed896cc1ee6d84f2.tar.gz
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
Diffstat (limited to 'time.c')
-rw-r--r--time.c10
1 files changed, 5 insertions, 5 deletions
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