るりまサーチ

最速Rubyリファレンスマニュアル検索!
669件ヒット [1-100件を表示] (0.032秒)

別のキーワード

  1. net/http get
  2. http get
  3. http start
  4. net/http start
  5. net/http post

モジュール

検索結果

<< 1 2 3 ... > >>

time (38066.0)

組み込みの Time クラスを拡張します。 日時を表す文字列をパースして Time オブジェクトに変換したり、 逆に Time オブジェクトを RFC などで定められた文字列に 変換する機能を提供します。

...組み込みの Time クラスを拡張します。
日時を表す文字列をパースして Time オブジェクトに変換したり、
逆に Time オブジェクトを RFC などで定められた文字列に
変換する機能を提供します。

* date-time は 2822 で定義されてい...
...ます。
* HTTP-date は 2616 で定義されています。
* dateTime は XML Schema Part 2: Datatypes (ISO 8601) で定義されています。
* 文字列から Time オブジェクトへの変換では Date._parse により様々な形式を扱えます。...

Time.httpdate(date) -> Time (35299.0)

2616で定義されているHTTP-dateとしてdateをパースして Timeオブジェクトに変換します。

...ているHTTP-dateとしてdateをパースして
Time
オブジェクトに変換します。

dateが2616に準拠していない、または
Time
クラスが指定された日時を表現できないときにArgumentErrorが
発生します。

@param date 2616で定義されているHTTP-dateと...
... Timeクラスが指定された日時を表現できないときに発生します。

require 'time'
rfc2616_time = 'Sun, 31 Aug 2008 12:34:56 GMT'

t = Time.httpdate(rfc2616_time)
p t.kind_of?(Time) #=> true

non_rfc2616_time = 'San, 31 Aug 2008 12:34:56 GMT'
begin
Time
.httpdat...
...e(non_rfc2616_time)
rescue ArgumentError => err
puts err #=> not RFC 2616 compliant date: "San, 31 Aug 2008 12:34:56 GMT"
end...

Time#httpdate -> String (35140.0)

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

...ている 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 #=> "Sun, 31 Aug 2008 03:34:56 GMT"...

DateTime.httpdate(str = &#39;Mon, 01 Jan -4712 00:00:00 GMT&#39;, start = Date::ITALY) -> DateTime (21200.0)

2616 で定められた書式の日付を解析し、 その情報に基づいて日付オブジェクトを生成します。

...2616 で定められた書式の日付を解析し、
その情報に基づいて日付オブジェクトを生成します。

Date._httpdate も参照してください。

@param str 日付をあらわす文字列
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス...

Win32::Registry.wtime2time(wtime) (12313.0)

@todo

...@todo

64bit の FILETIME Time オブジェクトに変換します。

詳細は以下の MSDN Library を参照してください。

* FILETIME Structure: http://msdn.microsoft.com/library/en-us/sysinfo/base/filetime_str.asp...

絞り込み条件を変える

Net::HTTPGatewayTimeOut (12016.0)

HTTP レスポンス 504 (Gateway Timeout) を表現するクラスです。

...HTTP レスポンス 504 (Gateway Timeout) を表現するクラスです。

詳しくは 7231 Section 6.6.5 を見てください。...

Net::HTTPGatewayTimeout (12016.0)

HTTP レスポンス 504 (Gateway Timeout) を表現するクラスです。

...HTTP レスポンス 504 (Gateway Timeout) を表現するクラスです。

詳しくは 7231 Section 6.6.5 を見てください。...

Net::HTTPRequestTimeOut (12016.0)

HTTP レスポンス 408 (Request Timeout) を表現するクラスです。

...HTTP レスポンス 408 (Request Timeout) を表現するクラスです。

詳しくは 7231 Section 6.5.7 を見てください。...

Net::HTTPRequestTimeout (12016.0)

HTTP レスポンス 408 (Request Timeout) を表現するクラスです。

...HTTP レスポンス 408 (Request Timeout) を表現するクラスです。

詳しくは 7231 Section 6.5.7 を見てください。...

Net::HTTPGatewayTimeOut (12000.0)

Alias of Net::HTTPGatewayTimeout

...Alias of Net::HTTPGatewayTimeout...

絞り込み条件を変える

Net::HTTPRequestTimeOut (12000.0)

Alias of Net::HTTPRequestTimeout

...Alias of Net::HTTPRequestTimeout...

WEBrick::HTTPRequest#request_time -> Time (9218.0)

リクエストされた時刻を Time オブジェクトで返します。

...リクエストされた時刻を Time オブジェクトで返します。...
<< 1 2 3 ... > >>