44件ヒット
[1-44件を表示]
(0.067秒)
検索結果
-
Time
# rfc2822 -> String (18108.0) -
2822 で定義されている date-time として表現される形式の文字列を 返します。
...h:mm:ss zone
//}
ただし zone は [+-]hhmm です。
self が UTC time の場合、zone は +0000 になります。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:00'
t = Time.iso8601(iso8601_time)
p t.rfc2822 #=> "Sun, 31 Aug 2008 03:34:56 -0000"... -
Date
# rfc2822 -> String (18102.0) -
2822 で定められた書式の文字列を返します。
2822 で定められた書式の文字列を返します。 -
Time
# rfc822 -> String (3008.0) -
2822 で定義されている date-time として表現される形式の文字列を 返します。
...h:mm:ss zone
//}
ただし zone は [+-]hhmm です。
self が UTC time の場合、zone は +0000 になります。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:00'
t = Time.iso8601(iso8601_time)
p t.rfc2822 #=> "Sun, 31 Aug 2008 03:34:56 -0000"... -
Date
# rfc822 -> String (3002.0) -
2822 で定められた書式の文字列を返します。
2822 で定められた書式の文字列を返します。