るりまサーチ

最速Rubyリファレンスマニュアル検索!
794件ヒット [101-200件を表示] (0.070秒)

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Date#asctime -> String (2.0)

asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。

asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。

Date#ctime -> String (2.0)

asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。

asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。

Date#cwday -> Integer (2.0)

暦週の日 (曜日) を返します (1-7、月曜は1)。

暦週の日 (曜日) を返します (1-7、月曜は1)。

Date#cweek -> Integer (2.0)

暦週を返します (1-53)。

暦週を返します (1-53)。

Date#cwyear -> Integer (2.0)

暦週における年を返します。

暦週における年を返します。

絞り込み条件を変える

Date#day -> Integer (2.0)

月の日を返します (1-31)。

月の日を返します (1-31)。

Date#deconstruct_keys(array_of_names_or_nil) -> Hash (2.0)

パターンマッチに使用する名前と値の Hash を返します。

...チに使用する名前の配列を指定します。nil の場合は全てをパターンマッチに使用します。

//emlist[例][ruby]{
d = Date.new(2022, 10, 5)

if d in wday: 3, day: ..7 # deconstruct_keys が使われます
puts "first Wednesday of the month"
end
#=> "first Wednesday of...
...g day in month #{month}"
end
#=> "working day in month 10" が出力される

# クラスのチェックと組み合わせて利用することもできます
if d in Date(wday: 3, day: ..7)
puts "first Wednesday of the month"
end
//}

@see d:spec/pattern_matching#matching_non_primitive_objects...

Date#downto(min) -> Enumerator (2.0)

このメソッドは、step(min, -1){|date| ...} と等価です。

...このメソッドは、step(min, -1){|date| ...} と等価です。

@param min 日付オブジェクト

@see Date#step, Date#upto...

Date#downto(min) {|date| ...} -> self (2.0)

このメソッドは、step(min, -1){|date| ...} と等価です。

...このメソッドは、step(min, -1){|date| ...} と等価です。

@param min 日付オブジェクト

@see Date#step, Date#upto...

Date#england -> Date (2.0)

このメソッドは、new_start(Date::ENGLAND) と等価です。

...このメソッドは、new_start(Date::ENGLAND) と等価です。

Date
#new_start、および Date::ENGLAND を参照してください。...

絞り込み条件を変える

<< < 1 2 3 4 ... > >>