diff options
author | Marcus Stollsteimer <[email protected]> | 2019-05-18 13:06:49 +0200 |
---|---|---|
committer | Marcus Stollsteimer <[email protected]> | 2019-05-18 13:06:49 +0200 |
commit | 60de17258ba0be6c113e60ce237c3b8608457da7 (patch) | |
tree | 91de04abe3a4a1630604bff4ae1d12e3a6bd8b9a /time.c | |
parent | cc0e460bccbf005d23616be1ea2624a161a4ecdd (diff) |
[DOC] Shorten examples for Time#{round,floor}
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -4177,12 +4177,6 @@ rb_time_succ(VALUE time) * t.round(2).iso8601(10) #=> "2010-03-30T05:43:25.1200000000Z" * t.round(3).iso8601(10) #=> "2010-03-30T05:43:25.1230000000Z" * t.round(4).iso8601(10) #=> "2010-03-30T05:43:25.1235000000Z" - * t.round(5).iso8601(10) #=> "2010-03-30T05:43:25.1234600000Z" - * t.round(6).iso8601(10) #=> "2010-03-30T05:43:25.1234570000Z" - * t.round(7).iso8601(10) #=> "2010-03-30T05:43:25.1234568000Z" - * t.round(8).iso8601(10) #=> "2010-03-30T05:43:25.1234567900Z" - * t.round(9).iso8601(10) #=> "2010-03-30T05:43:25.1234567890Z" - * t.round(10).iso8601(10) #=> "2010-03-30T05:43:25.1234567890Z" * * t = Time.utc(1999,12,31, 23,59,59) * (t + 0.4).round.iso8601(3) #=> "1999-12-31T23:59:59.000Z" @@ -4249,12 +4243,6 @@ time_round(int argc, VALUE *argv, VALUE time) * t.floor(2).iso8601(10) #=> "2010-03-30T05:43:25.1200000000Z" * t.floor(3).iso8601(10) #=> "2010-03-30T05:43:25.1230000000Z" * t.floor(4).iso8601(10) #=> "2010-03-30T05:43:25.1234000000Z" - * t.floor(5).iso8601(10) #=> "2010-03-30T05:43:25.1234500000Z" - * t.floor(6).iso8601(10) #=> "2010-03-30T05:43:25.1234560000Z" - * t.floor(7).iso8601(10) #=> "2010-03-30T05:43:25.1234567000Z" - * t.floor(8).iso8601(10) #=> "2010-03-30T05:43:25.1234567800Z" - * t.floor(9).iso8601(10) #=> "2010-03-30T05:43:25.1234567890Z" - * t.floor(10).iso8601(10) #=> "2010-03-30T05:43:25.1234567890Z" * * t = Time.utc(1999,12,31, 23,59,59) * (t + 0.4).floor.iso8601(3) #=> "1999-12-31T23:59:59.000Z" |