Forum: Ruby CSV parsing with ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6962fe436841813ad8c41f3d73720d12?d=identicon&s=25 Robert Walker Jr. (robert_w86)
on 2017-01-30 07:50
Attachment: RubyProject.xlsx (9 KB)
Greetings,

I am trying to learn how to parse a csv in ruby.  In the class example,
the goal is to organize by the date field.  Only thing is, I do not
recognize the
format.  I think the date fields is encoded.  I am new to ruby and have
gotten as far as to read the CSV in terminal.  Is there a book or post
that explains the tools used to parse and potentially decode a field.
Here is a sample of the data I am working with:

id     date
User1  1309380645
User2  1237178109


Thanks,

Robert
0fa73332c8e4a3b06ea439fd3f034322?d=identicon&s=25 Ronald Fischer (rovf)
on 2017-01-31 15:44
The Ruby Standard Library has a CSV class. Have a look at it. The
library documentation also contains small usage examples.
This topic is locked and can not be replied to.