Posted By

endorfin on 11/11/09


Tagged

ruby DateTime


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

berkes
NARKOZ


convert Unix timestamp to date


 / Published in: Ruby
 

  1. t = Time.at(1215163257)
  2. puts t.to_date
  3. >> 2008-07-04

Report this snippet  

You need to login to post a comment.