932件ヒット
[601-700件を表示]
(0.058秒)
クラス
- Array (11)
- File (43)
-
File
:: Stat (44) - Integer (22)
- Mutex (2)
- Object (22)
-
Process
:: Tms (88) - Random (33)
- String (22)
-
Thread
:: ConditionVariable (9) -
Thread
:: Mutex (9) - Time (616)
- UnboundMethod (11)
キーワード
- % (11)
- * (22)
- + (11)
- - (22)
- <=> (11)
-
_ dump (11) - asctime (11)
- atime (22)
- birthtime (21)
- ceil (5)
- cstime (11)
- cstime= (11)
- ctime (33)
- cutime (11)
- cutime= (11)
- day (11)
- dst? (11)
- eql? (11)
- floor (5)
- friday? (11)
- getgm (11)
- getlocal (22)
- getutc (11)
- gmt? (11)
-
gmt
_ offset (11) - gmtime (11)
- gmtoff (11)
- hash (11)
- hour (11)
- inspect (16)
- isdst (11)
- localtime (22)
- mday (11)
- min (11)
- mon (11)
- monday? (11)
- month (11)
- mtime (22)
- nsec (11)
- rand (33)
- round (11)
- saturday? (11)
- sec (11)
- sleep (11)
-
source
_ location (11) - stime (11)
- stime= (11)
- strftime (11)
- subsec (11)
- succ (7)
- sunday? (11)
- thursday? (11)
- times (22)
-
to
_ a (11) -
to
_ f (11) -
to
_ i (11) -
to
_ r (11) -
to
_ s (11) - tuesday? (11)
-
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - usec (11)
- utc (11)
- utc? (11)
-
utc
_ offset (11) - utime (11)
- utime= (11)
- wait (9)
- wday (11)
- wednesday? (11)
- yday (11)
- year (11)
- zone (11)
検索結果
先頭5件
-
Time
# zone -> String (9009.0) -
タイムゾーンを表す文字列を返します。
...タイムゾーンを表す文字列を返します。
//emlist[][ruby]{
p Time.now.zone # => "JST"
//}... -
Time
# hash -> Integer (9003.0) -
self のハッシュ値を返します。
self のハッシュ値を返します。
@return ハッシュ値を返します。
@see Object#hash -
File
# atime -> Time (6220.0) -
最終アクセス時刻を Time オブジェクトとして返します。
...最終アクセス時刻を Time オブジェクトとして返します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
Fil......e.open("testfile") { |f| f.atime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#ctime, File#mtime......e.open("testfile") { |f| f.atime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#ctime, File#mtime, File#birthtime... -
File
# birthtime -> Time (6220.0) -
作成された時刻を Time オブジェクトとして返します。
...た時刻を Time オブジェクトとして返します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
@raise NotImplementedError Windows のような birthtime のない......環境で発生します。
File.new("testfile").birthtime #=> Wed Apr 09 08:53:14 CDT 2003
@see File#lstat, File#atime, File#ctime, File#mtime... -
File
# ctime -> Time (6220.0) -
状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。
...状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に......発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#mtime......発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#mtime, File#birthtime... -
File
# mtime -> Time (6220.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......("testfile") { |f| f.mtime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime, File#ctime, File#birthtime... -
File
:: Stat # atime -> Time (6210.0) -
最終アクセス時刻を返します。
...最終アクセス時刻を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.atime.to_a #=> [45, 5, 21, 5, 9, 2007, 3, 248, false, "\223\214\213\236 (\225W\217\200\216\236) "]
//}
@see Time... -
File
:: Stat # ctime -> Time (6210.0) -
最終状態変更時刻を返します。 (状態の変更とは chmod などによるもので、Unix では i-node の変更を意味します)
...最終状態変更時刻を返します。
(状態の変更とは chmod などによるもので、Unix では i-node の変更を意味します)
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.ctime.to_f #=> 1188719843.0
//}
@see Time... -
File
:: Stat # mtime -> Time (6210.0) -
最終更新時刻を返します。
...最終更新時刻を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.mtime #=> Wed Sep 05 20:42:18 +0900 2007
//}
@see Time... -
File
:: Stat # birthtime -> Time (6204.0) -
作成された時刻を返します。
...birthtime のない環境で発生します。
//emlist[][ruby]{
File.write("testfile", "foo")
sleep 10
File.write("testfile", "bar")
sleep 10
File.chmod(0644, "testfile")
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
//}...