115件ヒット
[1-100件を表示]
(0.148秒)
種類
- インスタンスメソッド (97)
- 定数 (11)
- 文書 (7)
ライブラリ
- ビルトイン (43)
- date (22)
-
net
/ ftp (9) - openssl (11)
-
shell
/ command-processor (6) -
shell
/ filter (6) - win32ole (11)
クラス
- Date (22)
- File (10)
-
File
:: Stat (11) -
Net
:: FTP :: MLSxEntry (9) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Time (22)
-
WIN32OLE
_ VARIABLE (11)
モジュール
-
OpenSSL
:: ASN1 (11)
キーワード
-
NEWS for Ruby 2
. 5 . 0 (7) - UTCTIME (11)
- asctime (22)
- birthtime (21)
- facts (9)
-
ole
_ type _ detail (11)
検索結果
先頭5件
-
Shell
:: CommandProcessor # ctime(filename) -> Time (21207.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime... -
Shell
:: Filter # ctime(filename) -> Time (21207.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime... -
Time
# ctime -> String (18313.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 Jan 1 00:00:00 2000"
//}... -
Date
# ctime -> String (18301.0) -
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。
...asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。... -
Time
# asctime -> String (6313.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 Jan 1 00:00:00 2000"
//}... -
Date
# asctime -> String (6301.0) -
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。
...asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。... -
OpenSSL
:: ASN1 :: UTCTIME -> Integer (6300.0) -
ASN.1 UNIVERSAL タグの、 UTCTIME のタグ番号 23 を表す定数です。
...ASN.1 UNIVERSAL タグの、
UTCTIME のタグ番号 23 を表す定数です。... -
File
:: Stat # birthtime -> Time (6254.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-2......4 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
# birthtime -> Time (6206.0) -
作成された時刻を 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... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (3312.0) -
そのエントリの「facts」を返します。
...9 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。
* "modify" : 変更時刻 (Time)
* "create": 作成時刻
* "perm": パーミッション(String)
* "type": 種類(String, "file", "dir", "cdir", "pdir" など)
* "siz......e": ファイルサイズ (Integer, octet単位)
* "unique": ユニークID (String)
* "lang": ファイルの言語 (String)
* "media-type": メディアタイプ (String)
* "charset": 文字エンコーディング (String)
サーバが UNIX 系 OS の場合は以下のような facts......ます。
* "unix.mode": ファイルモード(Integer)
* "unix.group": グループ(Integer)
* "unix.owner": ファイルのオーナー(Integer)
* "unix.atime": ファイルに最後にアクセスした時刻 (Time)
* "unix.ctime": ファイルを作成した時刻 (Time)
これ以外... -
WIN32OLE
_ VARIABLE # ole _ type _ detail -> [String] (3206.0) -
変数の型と属性を取得します。
...@return 変数の型と属性を文字列配列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft XML, v5.0', 'tagSTATSTG')
tobj.variables.each do |v|
puts "#{v.ole_type} [#{v.ole_type_detail.join(', ')}] #{v.name}"
end
出力結果
Unknown Type 31 [] pwcsName # => VT_LPWSTR......OLE::VARIANTで未定義なので変換できない
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
GU......ID [USERDEFINED, GUID] clsid
UI4 [UI4] grfStateBits
UI4 [UI4] reserved
上例のように、WIN32OLE_VARIABLEで取得できる変数あるいはその元となる構造
体は、必ずしもOLEオートメーション互換データというわけではありません。こ
のようなデータ...