Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 754 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 754 Bytes

2pac time

for ruby!

Installation

$ gem install tupac

Usage

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

Related