182件ヒット
[1-100件を表示]
(0.139秒)
ライブラリ
- date (182)
検索結果
先頭5件
-
Date
# deconstruct _ keys(array _ of _ names _ or _ nil) -> Hash (6118.0) -
パターンマッチに使用する名前と値の Hash を返します。
...マッチに使用します。
//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 the month" が出力される
case d
in year: ...2022
puts "too old"
in month: ..9
pu......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
# asctime -> String (6102.0) -
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。
...asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。... -
Date
# ctime -> String (6102.0) -
asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。
...asctime(3) 書式の文字列を返します (ただし、末尾の "\n\0" は除く)。... -
Date
# cwday -> Integer (6102.0) -
暦週の日 (曜日) を返します (1-7、月曜は1)。
暦週の日 (曜日) を返します (1-7、月曜は1)。 -
Date
# cweek -> Integer (6102.0) -
暦週を返します (1-53)。
暦週を返します (1-53)。 -
Date
# cwyear -> Integer (6102.0) -
暦週における年を返します。
暦週における年を返します。 -
Date
# rfc2822 -> String (6102.0) -
2822 で定められた書式の文字列を返します。
2822 で定められた書式の文字列を返します。 -
Date
# rfc822 -> String (6102.0) -
2822 で定められた書式の文字列を返します。
2822 で定められた書式の文字列を返します。 -
Date
# xmlschema -> String (6102.0) -
XML Scheme (date) による書式の文字列を返します。
...XML Scheme (date) による書式の文字列を返します。... -
Date
# rfc3339 -> String (3102.0) -
8601 書式の文字列を返します (拡大表記はつかいません)。
8601 書式の文字列を返します (拡大表記はつかいません)。