D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Time
/
Filename :
ceil-i.ri
back
Copy
U:RDoc::AnyMethod[iI" ceil:ETI"Time#ceil;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"7Returns a new +Time+ object whose numerical value ;TI"9is greater than or equal to +self+ with its seconds ;TI"&truncated to precision +ndigits+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"5t = Time.utc(2010, 3, 30, 5, 43, 25.123456789r) ;TI"7t # => 2010-03-30 05:43:25.123456789 UTC ;TI"-t.ceil # => 2010-03-30 05:43:26 UTC ;TI"0t.ceil(2) # => 2010-03-30 05:43:25.13 UTC ;TI"2t.ceil(4) # => 2010-03-30 05:43:25.1235 UTC ;TI"4t.ceil(6) # => 2010-03-30 05:43:25.123457 UTC ;TI"6t.ceil(8) # => 2010-03-30 05:43:25.12345679 UTC ;TI"7t.ceil(10) # => 2010-03-30 05:43:25.123456789 UTC ;TI" ;TI",t = Time.utc(1999, 12, 31, 23, 59, 59) ;TI"1t # => 1999-12-31 23:59:59 UTC ;TI"1(t + 0.4).ceil # => 2000-01-01 00:00:00 UTC ;TI"1(t + 0.9).ceil # => 2000-01-01 00:00:00 UTC ;TI"1(t + 1.4).ceil # => 2000-01-01 00:00:01 UTC ;TI"1(t + 1.9).ceil # => 2000-01-01 00:00:01 UTC ;T:@format0o; ; [I"%Related: Time#floor, Time#round.;T: @fileI"time.c;T:0@omit_headings_from_table_of_contents_below0I"%ceil(ndigits = 0) -> new_time ;T0[ I"(*args);T@%FI" Time;TcRDoc::NormalClass00