From: "cyber c." Date: 2012-06-09T04:03:43+09:00 Subject: Problem with storing timestamp as datetime object Hi, I am storing timestamp of a file as "datetime" object in a DB, now when i parse through a file i check if there is an existing entry in the DB with same name and get the timestamp out of it. I compare both the timestamps. i have used `GetFileInfo #{file} | grep modified`.split(": ").last to get something of this kind Tue Jun 05 14:16:28 UTC 2012 When i retrive the datatime field from the DB i see this 2012-06-05 14:16:28 UTC. Since these two point to the same time , how do i compare them? -- Posted via http://www.ruby-forum.com/.