ライブラリ
- ビルトイン (120)
- date (22)
-
net
/ ftp (9) - openssl (66)
- pathname (11)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - win32ole (11)
クラス
- Date (22)
- File (54)
-
File
:: Stat (33) -
Net
:: FTP :: MLSxEntry (9) -
OpenSSL
:: ASN1 :: UTCTime (22) - Pathname (11)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Time (22)
-
WIN32OLE
_ VARIABLE (11)
モジュール
-
OpenSSL
:: ASN1 (33)
検索結果
先頭5件
-
File
# mtime -> Time (6.0) -
最終更新時刻を Time オブジェクトとして返します。
...に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.mtime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#ctime, File#birthtime... -
File
:: Stat (6.0) -
ファイルの情報を格納したオブジェクトのクラス。
...I/Oのブロックサイズ
blocks 割り当てられているブロック数
atime 最終アクセス時刻
mtime 最終更新時刻
ctime 最終状態変更時刻(状態の変更とは chmod などによるもので、Unix では i-node の変更を意味します)... -
File
:: Stat # birthtime -> Time (6.0) -
作成された時刻を返します。
...tfile")
sleep 10
File.read("testfile")
File.stat("testfile").birthtime #=> 2014-02-24 11:19:17 +0900
File.stat("testfile").mtime #=> 2014-02-24 11:19:27 +0900
File.stat("testfile").ctime #=> 2014-02-24 11:19:37 +0900
File.stat("testfile").atime #=> 2014-02-24 11:19:47 +0900
//}... -
File
:: Stat . new(path) -> File :: Stat (6.0) -
path に関する File::Stat オブジェクトを生成して返します。 File.stat と同じです。
...m Files/ruby-1.8/lib/ruby/site_ruby/1.8"
p File::Stat.new($:[0])
#=> 例
#<File::Stat dev=0x2, ino=0, mode=040755, nlink=1, uid=0, gid=0, rdev=0x2, size=0, blksize=nil, blocks=nil, atime=Sun Sep 02 14:15:20 +0900 2007, mtime=Tue Apr 24 23:03:44 +0900 2007, ctime=Tue Apr 24 23:03:37 +0900 2007>
//}... -
NEWS for Ruby 2
. 5 . 0 (6.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...りました
13941
* File.rename GVL を解放するようになりました 13951
* File::Stat#atime, File::Stat#mtime, File::Stat#ctime
Windows 8 以降でタイムスタンプの分数表現をサポートしました 13726
* File::Stat#ino, File.identical?
Windows 8... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (6.0) -
そのエントリの「facts」を返します。
...Integer)
* "unix.owner": ファイルのオーナー(Integer)
* "unix.atime": ファイルに最後にアクセスした時刻 (Time)
* "unix.ctime": ファイルを作成した時刻 (Time)
これ以外の非標準的な fact を保持している場合もあります。
詳しくは 3659... -
WIN32OLE
_ VARIABLE # ole _ type _ detail -> [String] (6.0) -
変数の型と属性を取得します。
...UI4 [UI4] type
_ULARGE_INTEGER [USERDEFINED, _ULARGE_INTEGER] cbSize
_FILETIME [USERDEFINED, _FILETIME] mtime
_FILETIME [USERDEFINED, _FILETIME] ctime
_FILETIME [USERDEFINED, _FILETIME] atime
UI4 [UI4] grfMode
UI4 [UI4] grfLocksSupported
GUID [USERDEFINED, GUID] clsid
UI4 [UI4] grfStateBits...