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:
parent
c3641d5b24
commit
52a71df01b
10
time.c
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.
|
* +sec+ may have fraction if it is a rational.
|
||||||
*
|
*
|
||||||
* +tz+ is the offset from UTC, or a timezone object.
|
* +tz+ specifies the timezone.
|
||||||
* It can be a string such as "+09:00" or a number of seconds such as 32400.
|
* 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
|
* a = Time.new #=> 2007-11-19 07:50:02 -0600
|
||||||
* b = 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
|
* (t6-t5)/3600.0 #=> 1.95
|
||||||
* (t8-t7)/3600.0 #=> 13.416666666666666
|
* (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
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user