るりまサーチ

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

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. module >
  4. float >
  5. complex >

ライブラリ

クラス

キーワード

検索結果

DateTime#minute -> Integer (15202.0)

分を返します (0-59)。

分を返します (0-59)。

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

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

..."+09:00") # => 2001-02-03 04:05:06 +0900
p t.strftime("Printed on %m/%d/%Y") # => "Printed on 02/03/2001"
p t.strftime("Printed on %m/%-d/%_6Y") # => "Printed on 02/3/ 2001"
p t.strftime("at %I:%M%p") # => "at 04:05AM"
p t.strftime("at %I:%M%#p") # => "at 04:05am"...
...# => 20010203 Calendar date (basic)
p t.strftime("%F") # => 2001-02-03 Calendar date (extended)
p t.strftime("%Y-%m") # => 2001-02 Calendar date, reduced accuracy, specific month
p t.strftime("%Y") # => 2001...
...# => 20 Calendar date, reduced accuracy, specific century
p t.strftime("%Y%j") # => 2001034 Ordinal date (basic)
p t.strftime("%Y-%j") # => 2001-034 Ordinal date (extended)
p t.strftime("%GW%V%u") # => 2001W...

DateTime#min -> Integer (102.0)

分を返します (0-59)。

分を返します (0-59)。