Advertisement
Guest User

Untitled

a guest
Dec 7th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. ruby-1.9.2-p290 :003 > login_time="Dec 7 08:57:16"
  2. => "Dec 7 08:57:16"
  3.  
  4.  
  5. ruby-1.9.2-p290 :008 > @date = Time.parse(login_time)
  6. => 2011-12-07 08:57:16 -0600
  7.  
  8. ruby-1.9.2-p290 :009 > @date.to_i
  9. => 1323269836
  10.  
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement