summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Stollsteimer <sto.mar@web.de>2019-05-18 11:06:10 (GMT)
committerMarcus Stollsteimer <sto.mar@web.de>2019-05-18 11:06:10 (GMT)
commitcc0e460bccbf005d23616be1ea2624a161a4ecdd (patch)
tree35db878d117affd7a68d059128efb9b69f6bf803
parentf782e5bdcf91f2885519e20e3aa53eec063faea8 (diff)
[DOC] Improve documentation for Time#floor
Use numbers that are more illustrative for #floor.
-rw-r--r--time.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/time.c b/time.c
index 2086dcd..bcf904b 100644
--- a/time.c
+++ b/time.c
@@ -4258,11 +4258,9 @@ time_round(int argc, VALUE *argv, VALUE time)
*
* t = Time.utc(1999,12,31, 23,59,59)
* (t + 0.4).floor.iso8601(3) #=> "1999-12-31T23:59:59.000Z"
- * (t + 0.49).floor.iso8601(3) #=> "1999-12-31T23:59:59.000Z"
- * (t + 0.5).floor.iso8601(3) #=> "1999-12-31T23:59:59.000Z"
+ * (t + 0.9).floor.iso8601(3) #=> "1999-12-31T23:59:59.000Z"
* (t + 1.4).floor.iso8601(3) #=> "2000-01-01T00:00:00.000Z"
- * (t + 1.49).floor.iso8601(3) #=> "2000-01-01T00:00:00.000Z"
- * (t + 1.5).floor.iso8601(3) #=> "2000-01-01T00:00:00.000Z"
+ * (t + 1.9).floor.iso8601(3) #=> "2000-01-01T00:00:00.000Z"
*
* t = Time.utc(1999,12,31, 23,59,59)
* (t + 0.123456789).floor(4).iso8601(6) #=> "1999-12-31T23:59:59.123400Z"