284件ヒット
[1-100件を表示]
(0.132秒)
ライブラリ
- ビルトイン (127)
- fileutils (22)
-
net
/ ftp (11) - pathname (22)
-
rubygems
/ package / tar _ header (11) -
rubygems
/ remote _ fetcher (11) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
webrick
/ httpservlet / filehandler (11) - zlib (22)
クラス
- File (72)
-
File
:: Stat (22) -
Gem
:: Package :: TarHeader (11) -
Gem
:: RemoteFetcher (11) -
Net
:: FTP (11) - Pathname (22)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Time (22)
-
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
Zlib
:: GzipFile (11) -
Zlib
:: GzipWriter (11)
モジュール
- FileUtils (11)
検索結果
先頭5件
-
File
# mtime -> Time (30524.0) -
最終更新時刻を Time オブジェクトとして返します。
...刻を Time オブジェクトとして返します。
@raise IOError 自身が close されている場合に発生します。
@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......f| f.mtime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#ctime, File#birthtime... -
Pathname
# mtime -> Time (30524.0) -
File.mtime(self.to_s) を渡したものと同じです。
...File.mtime(self.to_s) を渡したものと同じです。
@see File.mtime... -
Net
:: FTP # mtime(filename , local = false) -> Time (30518.0) -
filename の更新時刻を Time オブジェクトで返します。
...filename の更新時刻を Time オブジェクトで返します。
local を真とすると、得られた更新時刻を地方時とみなします。
偽の場合は更新時刻を協定世界時とみなします。
@param filename 更新時刻を得たいファイルの名前を文字列......与えます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError... -
File
:: Stat # mtime -> Time (30514.0) -
最終更新時刻を返します。
...最終更新時刻を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.mtime #=> Wed Sep 05 20:42:18 +0900 2007
//}
@see Time... -
File
. mtime(filename) -> Time (30508.0) -
最終更新時刻を返します。
...更新時刻を返します。
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例][ruby]{
File.mtime(__FILE__) # => 2017-12-03 03:16:22 +0900
//}... -
Shell
# mtime(filename) -> Time (30508.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime... -
Shell
:: CommandProcessor # mtime(filename) -> Time (30508.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime... -
Shell
:: Filter # mtime(filename) -> Time (30508.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime... -
Zlib
:: GzipFile # mtime -> Time (30502.0) -
gzip ファイルのヘッダーに記録されている最終更新時間を返します。
...gzip ファイルのヘッダーに記録されている最終更新時間を返します。... -
Time
# gmtime -> self (30330.0) -
タイムゾーンを協定世界時に設定します。
...のメソッドを呼び出した後は時刻変換を協定世界時として行ないます。
Time#localtime, Time#gmtime の挙動はシステムの
localtime(3) の挙動に依存します。Time クラ
スでは時刻を起算時からの経過秒数として保持していますが、ある......ます。システムを越えて Time オブジェクトを受け
渡す場合には注意する必要があります。
//emlist[][ruby]{
p t = Time.local(2000,1,1,20,15,1) # => 2000-01-01 20:15:01 +0900
p t.gmt? # => false
p t.gmtime # => 2... -
Gem
:: Package :: TarHeader # mtime -> Integer (30317.0) -
tar のヘッダに含まれる mtime を返します。
...tar のヘッダに含まれる mtime を返します。...