るりまサーチ

最速Rubyリファレンスマニュアル検索!
1219件ヒット [1-100件を表示] (0.074秒)

別のキーワード

  1. time sec
  2. date sec
  3. datetime sec
  4. time tv_sec
  5. _builtin sec

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

Time#sec -> Integer (18114.0)

秒を整数で返します。

...秒を整数で返します。

//emlist[][ruby]{
p Time.mktime(2000, 1, 1).sec # => 0
//}

通常は0から59を返しますが、うるう秒の場合は60を返します。

//emlist[][ruby]{
ENV['TZ'] = 'right/UTC'
p Time.mktime(2005, 12, 31, 23, 59, 60).sec # => 60
//}...

DateTime#sec -> Integer (18102.0)

秒を返します (0-59)。

秒を返します (0-59)。

RDoc::CodeObject#section -> RDoc::Context::Section (6201.0)

所属している section を返します。

...所属している section を返します。...

RDoc::Context#current_section -> RDoc::Context::Section (6201.0)

現在の section を返します。

...現在の section を返します。...

RDoc::Context#sections -> RDoc::Context::Section (6201.0)

追加された RDoc::Context::Section の配列を返します。

...追加された RDoc::Context::Section の配列を返します。...

絞り込み条件を変える

DateTime#sec_fraction -> Rational (6102.0)

秒の小数点以下の部分を表す分数を返します。

秒の小数点以下の部分を表す分数を返します。

DateTime#second -> Integer (6102.0)

秒を返します (0-59)。

秒を返します (0-59)。

DateTime#second_fraction -> Rational (6102.0)

秒の小数点以下の部分を表す分数を返します。

秒の小数点以下の部分を表す分数を返します。

Array#intersect?(other) -> bool (6101.0)

other と共通の要素が少なくとも1個あれば true を、なければ false を返します。

...other と共通の要素が少なくとも1個あれば true を、なければ false を返します。

//emlist[例][ruby]{
a = [ 1, 2, 3 ]
b = [ 3, 4, 5 ]
c = [ 5, 6, 7 ]
a.intersect?(b) # => true
a.intersect?(c) # => false
//}...
<< 1 2 3 ... > >>