22件ヒット
[1-22件を表示]
(0.017秒)
検索結果
-
Time
# httpdate -> String (18125.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"... -
Time (12.0)
-
時刻を表すクラスです。
...uby]{
p Marshal.load(Marshal.dump(Time.now.gmtime)).zone
# => "UTC"
//}
time ライブラリによって、Time.parse, Time.rfc2822, Time.httpdate, Time.iso8601 等が拡張されます。
Ruby 1.9.2 以降の Time クラスのデザインの詳細は
https://staff.aist.go.jp/tanaka-akira/pub/sapp...