2件ヒット
[1-2件を表示]
(0.050秒)
別のキーワード
ライブラリ
- pathname (1)
-
shell
/ command-processor (1)
クラス
- Pathname (1)
-
Shell
:: CommandProcessor (1)
検索結果
-
Pathname
# ctime -> Time (63442.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.ctime -
Shell
:: CommandProcessor # ctime(filename) -> Time (63358.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime