summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-11 06:56:28 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-11 06:56:28 +0000
commit8f8e4e5ab5a58b21b366780f934578d230599851 (patch)
tree9f5bb8bf30d418c5b5acddb9ce31059d9c6b8132
parent748782bfc958f1ea0245cfc1fb1e893f7fe2f671 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--time.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/time.c b/time.c
index f04bf5fc47..6f01c5f985 100644
--- a/time.c
+++ b/time.c
@@ -3050,8 +3050,8 @@ time_s_mktime(int argc, VALUE *argv, VALUE klass)
* 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 @@ time_to_i(VALUE time)
* 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 @@ time_to_f(VALUE time)
* 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