882件ヒット
[1-100件を表示]
(0.097秒)
ライブラリ
- ビルトイン (222)
- date (44)
-
fiddle
/ import (22) - json (11)
-
net
/ http (11) -
net
/ imap (33) -
net
/ smtp (44) - openssl (77)
-
rdoc
/ code _ object (11) -
rdoc
/ context (110) -
rinda
/ rinda (44) -
rinda
/ tuplespace (55) -
rubygems
/ security (99) - set (22)
- time (22)
- timeout (22)
- un (11)
クラス
- Array (8)
-
CGI
:: Cookie (11) - DateTime (44)
- FalseClass (55)
-
Gem
:: Security :: Policy (77) -
Gem
:: Security :: Signer (22) -
Net
:: HTTP (11) -
Net
:: IMAP :: ResponseCode (22) -
Net
:: IMAP :: ResponseText (11) -
Net
:: SMTP (44) -
OpenSSL
:: Config (77) -
RDoc
:: CodeObject (11) -
RDoc
:: Context (33) -
RDoc
:: Context :: Section (77) -
Rinda
:: TupleEntry (11) -
Rinda
:: TupleSpace (44) -
Rinda
:: TupleSpaceProxy (44) - Set (22)
- String (19)
- Symbol (19)
- Time (143)
-
WEBrick
:: Cookie (11)
モジュール
-
Fiddle
:: Importer (22) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) - Kernel (33)
キーワード
- & (11)
- == (11)
- [] (11)
- ^ (11)
-
add
_ value (11) -
auth
_ cram _ md5 (11) -
auth
_ login (11) -
auth
_ plain (11) - authenticate (11)
- casecmp (22)
- casecmp? (16)
-
cert
_ chain (11) - code (11)
- comment (11)
-
current
_ section (11) - data (11)
- each (11)
-
get
_ value (11) - inspect (22)
- intersect? (14)
- intersection (16)
- iso8601 (11)
-
keep
_ alive _ timeout= (11) - key (11)
- name (11)
- notify (22)
- nsec (11)
-
only
_ signed (11) -
only
_ trusted (11) - parent (11)
- read (22)
- renew (11)
-
sec
_ fraction (11) - second (11)
-
second
_ fraction (11) - section (22)
- sections (22)
- secure (22)
- sequence (11)
-
set
_ comment (11) -
set
_ current _ section (11) - sizeof (11)
- struct (11)
- subsec (11)
- take (22)
- timeout (22)
- title (11)
-
to
_ a (11) -
to
_ i (11) -
to
_ json (11) -
to
_ s (11) -
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - usec (11)
- value (11)
-
verify
_ chain (11) -
verify
_ data (11) -
verify
_ gem (11) -
verify
_ root (11) -
verify
_ signer (11) -
wait
_ writable (11) - write (22)
- xmlschema (11)
- | (11)
検索結果
先頭5件
-
Time
# -(sec) -> Time (18271.0) -
自身より sec 秒だけ前の時刻を返します。
...自身より sec 秒だけ前の時刻を返します。
@param sec 実数を秒を単位として指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - 2592000 # => 2000-01-01 00:00:00 +09... -
DateTime
# sec -> Integer (18218.0) -
秒を返します (0-59)。
...秒を返します (0-59)。... -
Time
# sec -> Integer (18214.0) -
秒を整数で返します。
...秒を整数で返します。
//emlist[][ruby]{
p Time.mktime(2000, 1, 1).sec # => 0
//}
通常は0から59を返しますが、うるう秒の場合は60を返します。
//emlist[][ruby]{
ENV['TZ'] = 'right/UTC'
p Time.mktime(2005, 12, 31, 23, 59, 60).sec # => 60
//}... -
Time
# -(time) -> Float (18141.0) -
自身と time との時刻の差を Float で返します。単位は秒です。
...します。単位は秒です。
@param time 自身との差を算出したい Time オブジェクトを指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - t # => 2592000.0
//}... -
RDoc
:: CodeObject # section -> RDoc :: Context :: Section (6301.0) -
所属している section を返します。
...所属している section を返します。... -
RDoc
:: Context # current _ section -> RDoc :: Context :: Section (6301.0) -
現在の section を返します。
...現在の section を返します。... -
RDoc
:: Context # sections -> RDoc :: Context :: Section (6301.0) -
追加された RDoc::Context::Section の配列を返します。
...追加された RDoc::Context::Section の配列を返します。... -
String
# casecmp(other) -> -1 | 0 | 1 | nil (6232.0) -
String#<=> と同様に文字列の順序を比較しますが、 アルファベットの大文字小文字の違いを無視します。
...casecmp? と違って大文字小文字の違いを無視するのは
Unicode 全体ではなく、A-Z/a-z だけです。
@param other self と比較する文字列
//emlist[例][ruby]{
"aBcDeF".casecmp("abcde") #=> 1
"aBcDeF".casecmp("abcdef") #=> 0
"aBcDeF".casecmp("abcdefg") #=> -1......"abcdef".casecmp("ABCDEF") #=> 0
//}
nil は文字列のエンコーディングが非互換の時に返されます。
//emlist[][ruby]{
"\u{e4 f6 fc}".encode("ISO-8859-1").casecmp("\u{c4 d6 dc}") #=> nil
//}
@see String#<=>, Encoding.compatible?... -
Symbol
# casecmp(other) -> -1 | 0 | 1 | nil (6232.0) -
Symbol#<=> と同様にシンボルに対応する文字列の順序を比較しますが、 アルファベットの大文字小文字の違いを無視します。
...ymbol#casecmp? と違って大文字小文字の違いを無視するのは
Unicode 全体ではなく、A-Z/a-z だけです。
@param other 比較対象のシンボルを指定します。
//emlist[][ruby]{
:aBcDeF.casecmp(:abcde) #=> 1
:aBcDeF.casecmp(:abcdef) #=> 0
:aBcDeF.casecmp(:abcd......=> -1
:abcdef.casecmp(:ABCDEF) #=> 0
:"\u{e4 f6 fc}".casecmp(:"\u{c4 d6 dc}") #=> 1
//}
other がシンボルではない場合や、文字列のエンコーディングが非互換の場合は、nil を返します。
//emlist[][ruby]{
:foo.casecmp("foo") #=> nil
"\u{e4 f6 fc}".encode("ISO-8......859-1").to_sym.casecmp(:"\u{c4 d6 dc}") #=> nil
//}
@see String#casecmp, Symbol#<=>, Symbol#casecmp?... -
String
# casecmp(other) -> -1 | 0 | 1 | nil (6220.0) -
String#<=> と同様に文字列の順序を比較しますが、 アルファベットの大文字小文字の違いを無視します。
...BcDeF".casecmp("abcde") #=> 1
"aBcDeF".casecmp("abcdef") #=> 0
"aBcDeF".casecmp("abcdefg") #=> -1
"abcdef".casecmp("ABCDEF") #=> 0
//}
nil は文字列のエンコーディングが非互換の時に返されます。
//emlist[][ruby]{
"\u{e4 f6 fc}".encode("ISO-8859-1").casecmp("\u{c4... -
Symbol
# casecmp(other) -> -1 | 0 | 1 | nil (6220.0) -
Symbol#<=> と同様にシンボルに対応する文字列の順序を比較しますが、 アルファベットの大文字小文字の違いを無視します。
...較対象のシンボルを指定します。
//emlist[][ruby]{
:aBcDeF.casecmp(:abcde) #=> 1
:aBcDeF.casecmp(:abcdef) #=> 0
:aBcDeF.casecmp(:abcdefg) #=> -1
:abcdef.casecmp(:ABCDEF) #=> 0
:"\u{e4 f6 fc}".casecmp(:"\u{c4 d6 dc}") #=> 1
//}
other がシンボルではない場合や、......文字列のエンコーディングが非互換の場合は、nil を返します。
//emlist[][ruby]{
:foo.casecmp("foo") #=> nil
"\u{e4 f6 fc}".encode("ISO-8859-1").to_sym.casecmp(:"\u{c4 d6 dc}") #=> nil
//}
@see String#casecmp, Symbol#<=>, Symbol#casecmp?... -
DateTime
# second -> Integer (6218.0) -
秒を返します (0-59)。
...秒を返します (0-59)。...