mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d5a96ece85
commit
49ab7b4238
1 changed files with 14 additions and 0 deletions
14
time.c
14
time.c
|
@ -1453,6 +1453,20 @@ time_init_1(int argc, VALUE *argv, VALUE time)
|
||||||
*
|
*
|
||||||
* Time.new(2008,6,21, 13,30,0, "+09:00") #=> 2008-06-21 13:30:00 +0900
|
* Time.new(2008,6,21, 13,30,0, "+09:00") #=> 2008-06-21 13:30:00 +0900
|
||||||
*
|
*
|
||||||
|
* # A trip for RubyConf 2007
|
||||||
|
* t1 = Time.new(2007,11,1,15,25,0, "+09:00") # JST (Narita)
|
||||||
|
* t2 = Time.new(2007,11,1,12, 5,0, "-05:00") # CDT (Minneapolis)
|
||||||
|
* t3 = Time.new(2007,11,1,13,25,0, "-05:00") # CDT (Minneapolis)
|
||||||
|
* t4 = Time.new(2007,11,1,16,53,0, "-04:00") # EDT (Charlotte)
|
||||||
|
* t5 = Time.new(2007,11,5, 9,24,0, "-05:00") # EST (Charlotte)
|
||||||
|
* t6 = Time.new(2007,11,5,11,21,0, "-05:00") # EST (Detroit)
|
||||||
|
* t7 = Time.new(2007,11,5,13,45,0, "-05:00") # EST (Detroit)
|
||||||
|
* t8 = Time.new(2007,11,6,17,10,0, "+09:00") # JST (Narita)
|
||||||
|
* p((t2-t1)/3600.0) #=> 10.666666666666666
|
||||||
|
* p((t4-t3)/3600.0) #=> 2.466666666666667
|
||||||
|
* p((t6-t5)/3600.0) #=> 1.95
|
||||||
|
* p((t8-t7)/3600.0) #=> 13.416666666666666
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Reference in a new issue