るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.033秒)
トップページ > クエリ:time[x] > クエリ:Converters[x]

別のキーワード

  1. time httpdate
  2. time rfc2822
  3. time iso8601
  4. time parse
  5. time strptime

ライブラリ

クラス

キーワード

検索結果

CSV::Converters -> Hash (18113.0)

このハッシュは名前でアクセスできる組み込みの変換器を保持しています。

...み合わせです。
: :date
Date.parse を使用してフィールドを変換します。
: :date_time
DateTime.parse を使用してフィールドを変換します。
: :all
:date_time と :numeric の組み合わせです。

全ての組み込みの変換器は、実際に変換する...

CSV#converters -> Array (6137.0)

現在の変換器のリストを返します。

...在の変換器のリストを返します。

//emlist[例][ruby]{
require "csv"

csv = CSV.new("header1,header2\nrow1_1,row1_2", converters: CSV::Converters.keys)
csv.converters # => [:integer, :float, :integer, :float, :date, :date_time, :date_time, :integer, :float]
//}

@see CSV::Converters...

CSV.new(data, options = Hash.new) -> CSV (30.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...ct::STDERR, or the stream is only available for output, the default
$INPUT_RECORD_SEPARATOR ($/) is used. Obviously,
discovery takes a little time. Set manually if speed is important. Also
note that IO objects should be opened in binary mode on Windows if this
feature will be used as...
...attacks on the parser. However, this
limit can cause a legitimate parse to fail and thus is set to +nil+, or off,
by default.
: :converters
CSV::Converters から取り出した名前の配列です。変換器が一つだけ
の場合は配列に格納する必要はありません。...
...返します。
: :write_headers
真を指定して :headers にも値をセットすると、ヘッダを出力します。
: :header_converters
:converters オプションに似ていますが、ヘッダ専用の変換器を定義します。
全ての組み込みの変換器は、値を変...