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
This commit is contained in:
stomar 2018-12-15 21:28:34 +00:00
Родитель c3641d5b24
Коммит 52a71df01b
1 изменённых файлов: 5 добавлений и 5 удалений

10
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