960件ヒット
[1-100件を表示]
(0.097秒)
ライブラリ
- ビルトイン (252)
- date (50)
-
fiddle
/ import (24) - json (12)
-
net
/ http (12) -
net
/ imap (36) -
net
/ smtp (48) - openssl (84)
-
rdoc
/ code _ object (12) -
rdoc
/ context (120) -
rinda
/ rinda (48) -
rinda
/ tuplespace (60) -
rubygems
/ security (108) - set (18)
- time (24)
- timeout (16)
- un (12)
クラス
- Array (10)
-
CGI
:: Cookie (12) - DateTime (50)
- FalseClass (60)
-
Gem
:: Security :: Policy (84) -
Gem
:: Security :: Signer (24) -
Net
:: HTTP (12) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
Net
:: SMTP (48) -
OpenSSL
:: Config (84) -
RDoc
:: CodeObject (12) -
RDoc
:: Context (36) -
RDoc
:: Context :: Section (84) -
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (48) -
Rinda
:: TupleSpaceProxy (48) - Set (24)
- String (21)
- Symbol (21)
- Time (158)
-
WEBrick
:: Cookie (12)
モジュール
-
Fiddle
:: Importer (24) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) - Kernel (28)
キーワード
- & (12)
- == (12)
- [] (12)
- ^ (12)
-
add
_ value (12) -
auth
_ cram _ md5 (12) -
auth
_ login (12) -
auth
_ plain (12) - authenticate (12)
- casecmp (24)
- casecmp? (18)
-
cert
_ chain (12) - code (12)
- comment (12)
-
current
_ section (12) - data (12)
-
deconstruct
_ keys (4) - each (12)
-
get
_ value (12) - inspect (24)
- intersect? (16)
- intersection (18)
- iso8601 (12)
-
keep
_ alive _ timeout= (12) - key (12)
- name (12)
- notify (24)
- nsec (12)
-
only
_ signed (12) -
only
_ trusted (12) - parent (12)
- read (24)
- renew (12)
-
sec
_ fraction (12) - second (12)
-
second
_ fraction (12) - section (24)
- sections (24)
- secure (24)
- sequence (12)
-
set
_ comment (12) -
set
_ current _ section (12) - sizeof (12)
- struct (12)
- subsec (12)
- take (24)
- timeout (16)
- title (12)
-
to
_ a (12) -
to
_ i (12) -
to
_ json (12) -
to
_ s (12) -
tv
_ nsec (12) -
tv
_ sec (12) -
tv
_ usec (12) - usec (12)
- value (12)
-
verify
_ chain (12) -
verify
_ data (12) -
verify
_ gem (12) -
verify
_ root (12) -
verify
_ signer (12) -
wait
_ writable (12) - write (24)
- xmlschema (12)
- | (12)
検索結果
先頭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?...