⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (295 Bytes)
Bug #5906
» csv_converter_bug.rb
steenslag (siep korteling)
, 01/19/2012 01:34 AM
require
'csv'
str
=
"10-10-2010,10.33"
p
csv
=
CSV
.
new
(
str
,{
:converters
=>
:date_time
}).
first
# expected: [#<DateTime: 2010-10-01T00:00:00+00:00 ((2455471j,0s,0n),+0s,2299161j)>, "10.33"
# got: ["10-10-2010", "10.33"]
p
csv
=
CSV
.
new
(
str
,{
:converters
=>
:all
}).
first
#=> ["10-10-2010", 10.33]
« Previous
1
2
Next »
(1-1/2)
Loading...