314件ヒット
[1-100件を表示]
(0.112秒)
ライブラリ
- date (314)
キーワード
- - (12)
- <=> (12)
- === (12)
- ajd (12)
- amjd (12)
-
deconstruct
_ keys (2) - downto (12)
- england (12)
- friday? (12)
- gregorian? (12)
- italy (12)
- julian (12)
- julian? (12)
- ld (12)
- leap? (12)
- monday? (12)
-
new
_ start (12) - saturday? (12)
- step (24)
- strftime (12)
- sunday? (12)
- thursday? (12)
- tuesday? (12)
- upto (12)
- wednesday? (12)
- xmlschema (12)
検索結果
先頭5件
-
Date
# england -> Date (6102.0) -
このメソッドは、new_start(Date::ENGLAND) と等価です。
...このメソッドは、new_start(Date::ENGLAND) と等価です。
Date#new_start、および Date::ENGLAND を参照してください。... -
Date
# italy -> Date (6102.0) -
このメソッドは、new_start(Date::ITALY) と等価です。
...このメソッドは、new_start(Date::ITALY) と等価です。
Date#new_start、および Date::ITALY を参照してください。... -
Date
# julian -> Date (6102.0) -
このメソッドは、new_start(Date::JULIAN) と等価です。
...このメソッドは、new_start(Date::JULIAN) と等価です。
Date#new_start、および Date::JULIAN を参照してください。... -
Date
# julian? -> bool (6102.0) -
ユリウス暦なら真を返します。
ユリウス暦なら真を返します。 -
Date
# ld -> Integer (6102.0) -
リリウス日を返します。
リリウス日を返します。 -
Date
# leap? -> bool (6102.0) -
閏年なら真を返します。
閏年なら真を返します。 -
Date
# xmlschema -> String (6102.0) -
XML Scheme (date) による書式の文字列を返します。
...XML Scheme (date) による書式の文字列を返します。... -
Date
# -(x) -> Rational | Date (102.0) -
x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。 あるいは x が数値ならば、self より x 日前の日付を返します。
...x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。
あるいは
x が数値ならば、self より x 日前の日付を返します。
@param x 日数、あるいは日付オブジェクト
@raise TypeError x が数値でも日付オブジェ... -
Date
# <=>(other) -> -1 | 0 | 1 | nil (102.0) -
二つの日付を比較します。 同じ日付なら 0 を、self が other よりあとの日付なら 1 を、 その逆なら -1 を返します。
...を、self が other よりあとの日付なら 1 を、
その逆なら -1 を返します。
other は日付オブジェクトか、
天文学的なユリウス日をあらわす数値を指定します。
そうでない場合、比較ができないので nil を返します。
//emlist[][ru......by]{
require "date"
p Date.new(2001, 2, 3) <=> Date.new(2001, 2, 4) # => -1
p Date.new(2001, 2, 3) <=> Date.new(2001, 2, 3) # => 0
p Date.new(2001, 2, 3) <=> Date.new(2001, 2, 2) # => 1
p Date.new(2001, 2, 3) <=> Object.new # => nil
p Date.new(2001, 2, 3) <=> Rational(4903887, 2) # => 0
/...