Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby-1.9.2-p290 :003 > login_time="Dec 7 08:57:16"
- => "Dec 7 08:57:16"
- ruby-1.9.2-p290 :008 > @date = Time.parse(login_time)
- => 2011-12-07 08:57:16 -0600
- ruby-1.9.2-p290 :009 > @date.to_i
- => 1323269836
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement