43件ヒット
[1-43件を表示]
(0.057秒)
種類
- インスタンスメソッド (33)
- 文書 (10)
クラス
- Date (11)
- Time (11)
- UnboundMethod (11)
キーワード
-
NEWS for Ruby 2
. 2 . 0 (10) -
source
_ location (11)
検索結果
先頭4件
-
Time
# httpdate -> String (18208.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"... -
Date
# httpdate -> String (18202.0) -
2616 (1123) で定められた書式の文字列を返します。
2616 (1123) で定められた書式の文字列を返します。 -
UnboundMethod
# source _ location -> [String , Integer] | nil (107.0) -
ソースコードのファイル名と行番号を配列で返します。
...は nil を返します。
//emlist[例][ruby]{
require 'time'
Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
//}
@see Proc#source_location, Method#source_location... -
NEWS for Ruby 2
. 2 . 0 (54.0) -
NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...を書き込みモードで開くようになりました
* String
* 追加: String#unicode_normalize
* 追加: String#unicode_normalize!
* 追加: String#unicode_normalized?
* Symbol
* 改善: String#to_sym, String#intern によって返される多くのシンボルがGC可......e.xmlschema may produce
fixed-offset Time objects.
It is happen when usual localtime doesn't preserve the offset from UTC.
* Time.httpdate は常にUTCのTimeオブジェクトを生成します。
* Time.strptime は引数が日付や時刻の情報を含まない場合、Argume......影響のある変更
なし
=== C API の更新
* 非推奨のAPIを削除しました 9502
* Check_SafeStr -> SafeStringValue
* rb_check_safe_str -> SafeStringValue
* rb_quad_pack -> rb_integer_pack
* rb_quad_unpack -> rb_integer_unpack
* rb_read_check : access struct FIL...