60件ヒット
[1-60件を表示]
(0.014秒)
別のキーワード
キーワード
-
_ strptime (12) -
ruby 1
. 9 feature (12)
検索結果
先頭5件
- DateTime
. strptime(str = & # 39;-4712-01-01T00:00:00+00:00& # 39; , format = & # 39;%FT%T%z& # 39; , start = Date :: ITALY) -> DateTime - Time
. strptime(date , format , now=self . now) -> Time - Time
. strptime(date , format , now=self . now) {|y| . . . } -> Time - DateTime
. _ strptime(str , format = & # 39;%FT%T%z& # 39;) -> Hash - ruby 1
. 9 feature
-
DateTime
. strptime(str = & # 39;-4712-01-01T00:00:00+00:00& # 39; , format = & # 39;%FT%T%z& # 39; , start = Date :: ITALY) -> DateTime (27254.0) -
与えられた雛型で日時表現を解析し、 その情報に基づいて DateTime オブジェクトを生成します。
...与えられた雛型で日時表現を解析し、
その情報に基づいて DateTime オブジェクトを生成します。
@param str 日時をあらわす文字列
@param format 書式
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError......正しくない日時になる組み合わせである場合に発生します。
例:
require 'date'
DateTime.strptime('2001-02-03T12:13:14Z').to_s
# => "2001-02-03T12:13:14+00:00"
@see Date.strptime, DateTime._strptime, strptime(3), Date#strftime... -
Time
. strptime(date , format , now=self . now) -> Time (18154.0) -
文字列を Date._strptime を用いて Time オブジェクト に変換します。
...文字列を Date._strptime を用いて Time オブジェクト
に変換します。
require 'time'
Time.strptime('2001-02-03T04:05:06+09:00', '%Y-%m-%dT%H:%M:%S%z')
#=> 2001-02-03 06:05:06 +0900
ブロックを渡すと年の部分をブロックによって変換できます。
require......}
#=> 1991-05-18 04:13:00 +0900
Time.strptime('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-05-18 04:13:00 +0900
詳しくは DateTime.strptime, Date.strptime を見てください。
@param date 時... -
Time
. strptime(date , format , now=self . now) {|y| . . . } -> Time (18154.0) -
文字列を Date._strptime を用いて Time オブジェクト に変換します。
...文字列を Date._strptime を用いて Time オブジェクト
に変換します。
require 'time'
Time.strptime('2001-02-03T04:05:06+09:00', '%Y-%m-%dT%H:%M:%S%z')
#=> 2001-02-03 06:05:06 +0900
ブロックを渡すと年の部分をブロックによって変換できます。
require......}
#=> 1991-05-18 04:13:00 +0900
Time.strptime('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-05-18 04:13:00 +0900
詳しくは DateTime.strptime, Date.strptime を見てください。
@param date 時... -
DateTime
. _ strptime(str , format = & # 39;%FT%T%z& # 39;) -> Hash (15143.0) -
与えられた雛型で日時表現を解析し、その情報に基づいてハッシュを生成します。
...す文字列
@param format 書式
例:
require 'date'
DateTime._strptime('2001-02-03T12:13:14Z')
# => {:year=>2001, :mon=>2, :mday=>3, :hour=>12, :min=>13, :sec=>14, :zone=>"Z", :offset=>0}
DateTime.strptime の内部で使用されています。
@see Date._strptime, DateTime.strptime... -
ruby 1
. 9 feature (48.0) -
ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。
...09
: Ruby 2.0 ブロックローカル変数
((<URL:http://www.rubyist.net/~matz/20050309.html#p03>))
=== 2005-03-04
: Time.strptime [lib][new]
: ParseDate.strptime [lib][new]
time ライブラリ, parsedate ライブラリに追加 ((<ruby-talk:132815>))
=== 2005-03-04
1.9.0 からメ......me#to_time [lib][new]
: Time#to_date [lib][new]
: Time#to_datetime [lib][new]
: Date#to_time [lib][new]
: Date#to_date [lib][new]
: Date#to_datetime [lib][new]
: DateTime#to_time [lib][new]
: DateTime#to_date [lib][new]
: DateTime#to_datetime [lib][new]
追加 ((<ruby-dev:24250>))
=== 2004-09-22...