クラス
- Date (2)
- File (5)
-
File
:: Stat (2) -
Net
:: FTP :: MLSxEntry (1) -
OpenSSL
:: ASN1 :: UTCTime (2) - Pathname (1)
- Time (2)
モジュール
-
OpenSSL
:: ASN1 (3)
検索結果
先頭5件
-
Time
# ctime -> String (99676.0) -
時刻を asctime(3) の形式の文字列に変換します。た だし、末尾の改行文字 "\n" は含まれません。
時刻を asctime(3) の形式の文字列に変換します。た
だし、末尾の改行文字 "\n" は含まれません。
戻り値の文字エンコーディングは Encoding::US_ASCII です。
//emlist[][ruby]{
p Time.local(2000).asctime # => "Sat Jan 1 00:00:00 2000"
p Time.local(2000).asctime.encoding # => #<Encoding:US-ASCII>
p Time.local(2000).ctime # => "Sat Ja... -
Pathname
# ctime -> Time (73009.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 -
File
# ctime -> Time (72973.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, F... -
File
. ctime(filename) -> Time (72943.0) -
状態が最後に変更された時刻を返します。 状態の変更とは chmod などによるものです。
状態が最後に変更された時刻を返します。
状態の変更とは chmod などによるものです。
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.ctime("testfile") # => 2017-11-30 22:40:49 +0900
File.chmod(0755, "testfile")
File.ctime("testfile") # => 2... -
File
:: Stat # ctime -> Time (72943.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 -
Date
# ctime -> String (72604.0) -
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。 -
Time
# asctime -> String (63676.0) -
時刻を asctime(3) の形式の文字列に変換します。た だし、末尾の改行文字 "\n" は含まれません。
時刻を asctime(3) の形式の文字列に変換します。た
だし、末尾の改行文字 "\n" は含まれません。
戻り値の文字エンコーディングは Encoding::US_ASCII です。
//emlist[][ruby]{
p Time.local(2000).asctime # => "Sat Jan 1 00:00:00 2000"
p Time.local(2000).asctime.encoding # => #<Encoding:US-ASCII>
p Time.local(2000).ctime # => "Sat Ja... -
OpenSSL
:: ASN1 . # UTCTime(value) -> OpenSSL :: ASN1 :: UTCTime -> OpenSSL :: ASN1 :: UTCTime (37819.0) -
ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::UTCTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
OpenSSL
:: ASN1 . # UTCTime(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: UTCTime (37219.0) -
ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを 生成します。
ASN.1 の UTCTime 型の値を表現する Ruby のオブジェクトを
生成します。
OpenSSL::ASN1::UTCTime.new と同じです。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeのオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPECIFIC, :APPLICATION, :PRIVATE のいずれか) -
Date
# asctime -> String (36604.0) -
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。 -
OpenSSL
:: ASN1 :: UTCTIME -> Integer (36601.0) -
ASN.1 UNIVERSAL タグの、 UTCTIME のタグ番号 23 を表す定数です。
ASN.1 UNIVERSAL タグの、
UTCTIME のタグ番号 23 を表す定数です。 -
OpenSSL
:: ASN1 :: UTCTime (36001.0) -
ASN.1 の UTCTime 型(Universal タグのタグ番号23)を表すクラスです。
ASN.1 の UTCTime 型(Universal タグのタグ番号23)を表すクラスです。 -
File
# atime -> Time (18670.0) -
最終アクセス時刻を Time オブジェクトとして返します。
最終アクセス時刻を Time オブジェクトとして返します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.atime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#ctime, File#mtime, File#birthtime -
File
# birthtime -> Time (18670.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#mti... -
File
# mtime -> Time (18670.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, File#birthtime -
File
:: Stat # birthtime -> Time (18622.0) -
作成された時刻を返します。
作成された時刻を返します。
@raise NotImplementedError Windows のような 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... -
OpenSSL
:: ASN1 :: UTCTime . new(value) -> OpenSSL :: ASN1 :: UTCTime (18619.0) -
ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを 生成します。
ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::UTCTIME となります。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPEC... -
OpenSSL
:: ASN1 :: UTCTime . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: UTCTime (18619.0) -
ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを 生成します。
ASN.1 の UTCTime 型の値を表現する OpenSSL::ASN1::UTCTime オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::UTCTIME となります。
@param value ASN.1 値を表す Ruby のオブジェクト(Timeオブジェクト)
@param tag タグ番号
@param tagging タグ付けの方法(:IMPLICIT もしくは :EXPLICIT)
@param tag_class タグクラス(:UNIVERSAL, :CONTEXT_SPEC... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (376.0) -
そのエントリの「facts」を返します。
そのエントリの「facts」を返します。
facts とはそのエントリに関するファイルサイズなどの様々な情報です。
Net::FTP はこの情報を文字列をキーとするハッシュテーブルで
返します。
標準では以下のような facts が定義されています。これらの facts には
対応するメソッドが定義されています。すべてのサーバでこれら
の facts がすべて実装されているわけではありません。
3659 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。
* "modify" : 変更時刻 (Ti... -
NEWS for Ruby 2
. 5 . 0 (91.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ms.org/2017/11/08/2.7.2-released.html
* https://blog.rubygems.org/2017/11/03/2.7.1-released.html
* https://blog.rubygems.org/2017/11/01/2.7.0-released.html
* https://blog.rubygems.org/2017/10/09/2.6.14-released.html
* https://blog.rubygems.org/2017/08/27/2.6.13-released.html...