るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.031秒)
トップページ > クラス:Time[x] > クエリ:local[x] > クエリ:month[x] > クエリ:strftime[x]

別のキーワード

  1. socket pf_local
  2. socket af_local
  3. socket local_creds
  4. socket local_connwait
  5. socket local_peercred

ライブラリ

検索結果

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

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

...または午後(am,pm)
* %p: 午前または午後(AM,PM)
* %Q: 1970-01-01 00:00:00 UTC からの経過ミリ秒 (Time#strftime は対応していませんが、Date#strftime で使えます)
* %R: 24時間制の時刻。%H:%M と同等。
* %r: 12時間制の時刻。%I:%M:%S %p と同等...
...t.strftime("%Y%m%d") # => 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("...
....strftime("%GW%V") # => 2001W05 Week date, reduced accuracy, specific week (basic)
p t.strftime("%G-W%V") # => 2001-W05 Week date, reduced accuracy, specific week (extended)
p t.strftime("%H%M%S") # => 040506 Local...