for ruby!
$ gem install tupac
require 'tupac'
Tupac.at(491902380) # => 2012-04-16 02:36:00 -0400
Tupac.now.to_i # => 559593865
Or mix it in with Time
by requiring tupac/ext
require 'tupac/ext'
Time.now.to_2pac # => 559593920
Time.at_2pac(0) # => 1996-09-13 19:03:00 -0400
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
MIT