るりまサーチ

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

別のキーワード

  1. _builtin argumenterror
  2. on argumenterror
  3. new argumenterror
  4. dump argumenterror
  5. parse argumenterror

種類

ライブラリ

クラス

検索結果

DateTime.strptime(str = '-4712-01-01T00:00:00+00:00', format = '%FT%T%z', start = Date::ITALY) -> DateTime (18131.0)

与えられた雛型で日時表現を解析し、 その情報に基づいて DateTime オブジェクトを生成します。

...すユリウス日
@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...

Date.strptime(str = '-4712-01-01', format = '%F', start = Date::ITALY) -> Date (18119.0)

与えられた雛型で日付表現を解析し、 その情報に基づいて日付オブジェクトを生成します。

...Date._strptime も参照してください。
また strptime(3)、および Date#strftime も参照してください。

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

NEWS for Ruby 2.2.0 (42.0)

NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...el
* 追加: Kernel.#itself(Object#itself)
* 改善: Kernel.#throw は、対応する catch ブロックがないとき ArgumentError ではなく
ArgumentError
のサブクラスである UncaughtThrowError を発生させるようになりました


* Process
* 拡張: Process...
...無限大が指定されたとき C99 で期待されるような値を返します。

* Proc
* 非互換: ArgumentError は発生しなくなりました。
* ArgumentError is no longer raised when lambda Proc is passed as a
block, and the number of yielded arguments does not match...
...* Time.parse, Time.strptime, Time.rfc2822, Time.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 は引数が日付...