るりまサーチ (Ruby 2.6.0)

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

別のキーワード

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

ライブラリ

クラス

検索結果

Time#httpdate -> String (72772.0)

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

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

@return 以下の形式の文字列を返します。
//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 #=> "Su...