[前][次][番号順一覧][スレッド一覧]

ruby-changes:15410

From: akr <ko1@a...>
Date: Sun, 11 Apr 2010 15:56:38 +0900 (JST)
Subject: [ruby-changes:15410] Ruby:r27304 (trunk): update doc.

akr	2010-04-11 15:56:28 +0900 (Sun, 11 Apr 2010)

  New Revision: 27304

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27304

  Log:
    update doc.

  Modified files:
    trunk/time.c

Index: time.c
===================================================================
--- time.c	(revision 27303)
+++ time.c	(revision 27304)
@@ -3050,8 +3050,8 @@
  *  since the Epoch.
  *
  *     t = Time.now
- *     "%10.5f" % t.to_f   #=> "1049896564.17839"
- *     t.to_i              #=> 1049896564
+ *     "%10.5f" % t.to_f   #=> "1270968656.89607"
+ *     t.to_i              #=> 1270968656
  */
 
 static VALUE
@@ -3071,11 +3071,11 @@
  *  seconds since the Epoch.
  *
  *     t = Time.now
- *     "%10.5f" % t.to_f   #=> "1049896564.13654"
- *     t.to_i              #=> 1049896564
+ *     "%10.5f" % t.to_f   #=> "1270968744.77658"
+ *     t.to_i              #=> 1270968744
  *
  *  Note that IEEE 754 double is not accurate enough to represent
- *  nanoseconds from the Epoch.
+ *  number of nanoseconds from the Epoch.
  */
 
 static VALUE
@@ -3095,7 +3095,7 @@
  *  since the Epoch.
  *
  *     t = Time.now
- *     p t.to_r            #=> (8807170717088293/8388608)
+ *     p t.to_r            #=> (1270968792716287611/1000000000)
  *
  *  This methods is intended to be used to get an accurate value
  *  representing nanoseconds from the Epoch.  You can use this

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]