るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.072秒)
トップページ > バージョン:2.6.0[x] > クエリ:Integer[x] > クエリ:-[x] > クエリ:wday[x]

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer downto
  5. integer new

ライブラリ

クラス

検索結果

Time#wday -> Integer (55285.0)

曜日を0(日曜日)から6(土曜日)の整数で返します。

曜日を0(日曜日)から6(土曜日)の整数で返します。

//emlist[][ruby]{
p sun = Time.new(2017, 9, 17, 10, 34, 15, '+09:00') # => 2017-09-17 10:34:15 +0900
p sun.wday # => 0
p mon = Time.new(2017, 9, 18, 10, 34, 15, '+09:00') # => 2017-09-18 10:34:15 +0900
p mon.wday ...

Date#wday -> Integer (54955.0)

曜日を返します (0-6、日曜日は零)。

曜日を返します (0-6、日曜日は零)。

Date#cwday -> Integer (18952.0)

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

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