るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.143秒)
トップページ > クエリ:I[x] > クエリ:h[x] > バージョン:3.3[x] > クエリ:on[x] > クエリ:month[x]

別のキーワード

  1. _builtin to_h
  2. hash to_h
  3. array to_h
  4. struct to_h
  5. env to_h

ライブラリ

クラス

キーワード

検索結果

Time#month -> Integer (82222.0)

月を整数で返します。

月を整数で返します。

//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5) # => 2000-01-02 03:04:05 +0900
p t.month # => 1
p t.mon # => 1
//}

Date#month -> Integer (73204.0)

月を返します (1-12)。

月を返します (1-12)。

CGI::RFC822_MONTHS -> [String] (64201.0)

822 で定義されている月名の略称を返します。

822 で定義されている月名の略称を返します。

@see 822

Exception#backtrace_locations -> [Thread::Backtrace::Location] (55627.0)

バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。

バックトレース情報を返します。Exception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。

現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。

//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.new(2000, month, -1).day == 31
raise "#{month} is not long month"
end
...

Time#strftime(format) -> String (27787.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)
* ...

絞り込み条件を変える

Exception#==(other) -> bool (18463.0)

自身と指定された other のクラスが同じであり、 message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。

自身と指定された other のクラスが同じであり、
message と backtrace が == メソッドで比較して
等しい場合に true を返します。そうでない場合に false を返します。

@param other 自身と比較したいオブジェクトを指定します。
自身と異なるクラスのオブジェクトを指定した場合は
Exception#exception を実行して変換を試みます。

//emlist[例][ruby]{
require "date"
def check_long_month(month)
return if D...