72件ヒット
[1-72件を表示]
(0.038秒)
種類
- インスタンスメソッド (33)
- 特異メソッド (13)
- 定数 (11)
- モジュール関数 (11)
- 文書 (4)
クラス
- DateTime (22)
-
File
:: Stat (11) - Time (13)
モジュール
- Process (22)
キーワード
- <=> (11)
-
CLOCK
_ SECOND (11) -
NEWS for Ruby 3
. 0 . 0 (4) - at (13)
-
clock
_ gettime (11) - sec (11)
検索結果
先頭5件
-
DateTime
# second -> Integer (15203.0) -
秒を返します (0-59)。
秒を返します (0-59)。 -
Process
:: CLOCK _ SECOND -> Integer (6202.0) -
Process.#clock_gettime で使われます。
Process.#clock_gettime で使われます。
システムによっては定義されていません。 -
Process
. # clock _ gettime(clock _ id , unit=:float _ second) -> Float | Integer (244.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)は様々です。
例えば、システムの起動時刻、プロセス起動時刻、エポ... -
Time
. at(seconds , xseconds , unit) -> Time (208.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒......unit :millisecond, :usec, :microsecond, :nsec, :nanosecond のいずれかを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec #......am unit :millisecond, :usec, :microsecond, :nsec, :nanosecond のいずれかを指定します。
@param in "+HH:MM" や "-HH:MM" のような形式の文字列か
数値でタイムゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 1......23456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec # => 123456789
//}......かマイクロ秒かナノ秒を指定します。
@param unit :millisecond, :usec, :microsecond, :nsec, :nanosecond のいずれかを指定します。
@param in "+HH:MM" や "-HH:MM" のような形式の文字列か
"UTC" かミリタリータイムゾーンの文字列または......ンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec # => 12... -
Time
. at(seconds , xseconds , unit , in:) -> Time (208.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒......am unit :millisecond, :usec, :microsecond, :nsec, :nanosecond のいずれかを指定します。
@param in "+HH:MM" や "-HH:MM" のような形式の文字列か
数値でタイムゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 1......23456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec # => 123456789
//}......かマイクロ秒かナノ秒を指定します。
@param unit :millisecond, :usec, :microsecond, :nsec, :nanosecond のいずれかを指定します。
@param in "+HH:MM" や "-HH:MM" のような形式の文字列か
"UTC" かミリタリータイムゾーンの文字列または......ンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec # => 12... -
File
:: Stat # <=>(o) -> Integer | nil (107.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::Stat.new(fp1.pat... -
DateTime
# sec -> Integer (103.0) -
秒を返します (0-59)。
秒を返します (0-59)。 -
NEWS for Ruby 3
. 0 . 0 (36.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...Enumerator::ArithmeticSequence
//emlist[][ruby]{
dirty_data = ['--', 'data1', '--', '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......ip hostname verification. 16555
* Net::HTTP.get, Net::HTTP.get_response, and Net::HTTP.get_print can take the request headers as a Hash in the second argument when the first argument is a URI. 16686
* Net::SMTP
* Add SNI support.
* Net::SMTP.start arguments are keyword arguments.......redirected to a closed pipe, no broken pipe error message will be shown now. 14413
* `TRUE`/`FALSE`/`NIL` constants are no longer defined.
* Integer#zero? overrides Numeric#zero? for optimization. 16961
* Enumerable#grep and Enumerable#grep_v when passed a Regexp and no block no longer modi...