55件ヒット
[1-55件を表示]
(0.053秒)
クラス
- DateTime (11)
- Time (33)
- UnboundMethod (11)
キーワード
- rfc2822 (11)
- rfc822 (11)
-
source
_ location (11)
検索結果
先頭5件
-
Time
# zone -> String (18209.0) -
タイムゾーンを表す文字列を返します。
...タイムゾーンを表す文字列を返します。
//emlist[][ruby]{
p Time.now.zone # => "JST"
//}... -
DateTime
# zone -> String (18203.0) -
タイムゾーンを返します。
タイムゾーンを返します。
これは、正確には時差をあらわす文字列です。 -
Time
# rfc2822 -> String (121.0) -
2822 で定義されている date-time として表現される形式の文字列を 返します。
...rn 以下の形式の文字列を返します。
//emlist{
day-of-week, DD month-name CCYY hh:mm:ss zone
//}
ただし zone は [+-]hhmm です。
self が UTC time の場合、zone は +0000 になります。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:0... -
Time
# rfc822 -> String (121.0) -
2822 で定義されている date-time として表現される形式の文字列を 返します。
...rn 以下の形式の文字列を返します。
//emlist{
day-of-week, DD month-name CCYY hh:mm:ss zone
//}
ただし zone は [+-]hhmm です。
self が UTC time の場合、zone は +0000 になります。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:0... -
UnboundMethod
# source _ location -> [String , Integer] | nil (108.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",...