Explore to_s(radix) on UTC Time


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.