るりまサーチ

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

別のキーワード

  1. date iso8601
  2. time iso8601
  3. openssl iso64string
  4. asn1 iso64string
  5. socket pf_iso

ライブラリ

検索結果

Time#httpdate -> String (18132.0)

2616 で定義されている HTTP-date の rfc1123-date 形式の文字列を 返します。

...を返します。
//emlist{
day-of-week, DD month-name CCYY hh:mm:ss GMT
//}
注意: 結果はいつも UTC (GMT) です。

使用例
require 'time'

iso8601
_time = '2008-08-31T12:34:56+09:00'
t = Time.iso8601(iso8601_time)
p t.httpdate #=> "Sun, 31 Aug 2008 03:34:56 GMT"...