るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file ctime
  4. file lstat
  5. file atime

ライブラリ

クラス

検索結果

Rake::FileTask#timestamp -> Time | Rake::LateTime (21114.0)

ファイルタスクのタイムスタンプを返します。

...ファイルタスクのタイムスタンプを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: "test.txt"
file
"test.txt" do |task|
Rake.application.options.build_all = false
task.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//}...

Rake::FileCreationTask#timestamp -> Rake::EarlyTime (21108.0)

どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。

...どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。


@see [[FileTask#timestamp]]...

Logger#formatter -> String (19.0)

ログを出力する際に使用するフォーマッターを取得します。

...FO -- : test

ltsv_formatter = proc { |severity, timestamp, progname, msg|
"time:#{timestamp}\tlevel:#{severity}\tprogname:#{progname}\tmessage:#{msg}\n"
}
logger.formatter = ltsv_formatter
logger.formatter # => #<Proc:0x00007fa3048b8e00@/path/to/file:8>
logger.info("MyApp") { "test" }

# => time:...