77件ヒット
[1-77件を表示]
(0.041秒)
種類
- インスタンスメソッド (36)
- 文書 (17)
- 定数 (12)
- モジュール関数 (12)
クラス
- DateTime (24)
-
File
:: Stat (12)
モジュール
- Process (24)
キーワード
- <=> (12)
-
CLOCK
_ SECOND (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 3
. 0 . 0 (5) -
clock
_ gettime (12) - sec (12)
検索結果
先頭5件
-
DateTime
# second -> Integer (15201.0) -
秒を返します (0-59)。
秒を返します (0-59)。 -
Process
:: CLOCK _ SECOND -> Integer (6201.0) -
Process.#clock_gettime で使われます。
Process.#clock_gettime で使われます。
システムによっては定義されていません。 -
Process
. # clock _ gettime(clock _ id , unit=:float _ second) -> Float | Integer (219.0) -
POSIX の clock_gettime() 関数の時間を返します。
...ocess::CLOCK_UPTIME_RAW
macOS 10.12
: Process::CLOCK_UPTIME_RAW_APPROX
macOS 10.12
: Process::CLOCK_UPTIME_PRECISE
FreeBSD 8.1
: Process::CLOCK_SECOND
FreeBSD 8.1
SUS は Single Unix Specification を意味しており、
SUS は POSIX と POSIX の一部で定義されている clock_gettime......します。
: :float_second
Float の秒 (デフォルト)
: :float_millisecond
Float のミリ秒
: :float_microsecond
Float のマイクロ秒
: :second
Integer の秒
: :millisecond
Integer のミリ秒
: :microsecond
Integer のマイクロ秒
: :nanosecond
Integer のナノ秒
基に......ブジェクト (IEEE 754 double) は CLOCK_REALTIME の結果を表すには不十分です。
正確なナノ秒が必要なら、unit に :nanosecond を使ってください。
返値のオリジン(0)は様々です。
例えば、システムの起動時刻、プロセス起動時刻、エポ... -
File
:: Stat # <=>(o) -> Integer | nil (106.0) -
ファイルの最終更新時刻を比較します。self が other よりも 新しければ正の数を、等しければ 0 を古ければ負の数を返します。 比較できない場合は nil を返します。
...ンスを指定します。
//emlist[][ruby]{
require 'tempfile' # for Tempfile
fp1 = Tempfile.open("first")
fp1.print "古い方\n"
sleep(1)
fp2 = Tempfile.open("second")
fp2.print "新しい方\n"
p File::Stat.new(fp1.path) <=> File::Stat.new(fp2.path) #=> -1
p File::Stat.new(fp2.path) <=> File... -
DateTime
# sec -> Integer (101.0) -
秒を返します (0-59)。
秒を返します (0-59)。 -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...post #=> [2, "d", "e", "f", 3]
end
//}
* Endless method definition is added. [EXPERIMENTAL]
16746
//emlist{
def square(x) = x * x
//}
* Interpolated String literals are no longer frozen when
`# frozen-string-literal: true` is used. 17104
* Magic comment `shareable_constant_value`.......rdoc@Magic+Comments] for more details.
17273
* A {static analysis}[rdoc-label:label-Static+analysis] foundation is
introduced.
* {RBS}[rdoc-label:label-RBS] is introduced. It is a type definition
language for Ruby programs.
* {TypeProf}[rdoc-label:label-TypeProf] is ex......'data2', '--', 'data3']
dirty_data[(1..).step(2)] # take each second element
# => ["data1", "data2", "data3"]
//}
* Binding
* Binding#eval when called with one argument will use `"(eval)"` for `__FILE__` and `1` for `__LINE__` in the evaluated code. 4352 17419
* ConditionVariable
* Con... -
NEWS for Ruby 2
. 0 . 0 (12.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ていない変数は警告しなくなりました
=== 組み込みクラスの更新
* ARGF.class
* 追加: ARGF.class#codepoints, ARGF.class#each_codepoint
IO にある同名のメソッドに対応します
* Array
* 追加: Array#bsearch 二分探索します
* 非互......lt_proc= default proc をクリアするために nil を渡せるようになりました
* IO
* 非推奨: IO#lines, #bytes, #chars, #codepoints
* Kernel
* 追加: Kernel.#Hash という変換メソッド。Kernel.#Array, Kernel.#Float に似ています
* 追加: Kernel.#__dir__......ss unless
explicitly requested such as system(..., fd=>fd).
* Kernel#respond_to? against a protected method now returns false
unless the second argument is true.
* Object#respond_to_missing?, Object#initialize_clone, Object#initialize_dup
* private になりました
* Thread#jo...