るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.025秒)
トップページ > クエリ:File[x] > クエリ:IO[x] > ライブラリ:pathname[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file size
  4. file path
  5. file open

クラス

検索結果

Pathname#ctime -> Time (30.0)

File.ctime(self.to_s) を渡したものと同じです。

...File.ctime(self.to_s) を渡したものと同じです。

//emlist[例][ruby]{
require 'pathname'

IO
.write("testfile", "test")
pathname
= Pathname("testfile")
pathname
.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname
.chmod(0755)
pathname
.ctime # => 2019-01-14 00:39:52 +0900
//}

@see File.ct...