Posted By

greystate on 05/21/07


Tagged

textmate rails ruby


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


Explore to_s(radix) on UTC Time


 / Published in: Ruby
 

  1. t = Time.now.utc
  2. puts t
  3. 2.upto(36) { |r| puts r.to_s + " : " + t.to_i.to_s(r) }

Report this snippet  

You need to login to post a comment.