るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.039秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:mon[x] > クエリ:new[x] > バージョン:2.4.0[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. date mon
  2. monitor mon_exit
  3. monitor mon_enter
  4. monitor mon_try_enter
  5. monitor try_mon_enter

クラス

キーワード

検索結果

Time#wday -> Integer (172.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 ...

Time#strftime(format) -> String (64.0)

時刻を format 文字列に従って文字列に変換した結果を返します。

時刻を format 文字列に従って文字列に変換した結果を返します。

@param format フォーマット文字列を指定します。使用できるものは 以下の通りです。

* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付と時刻 (%a %b %e %T %Y)
* %D: 日付 (%m/%d/%y)
* ...