Calculates the Star Trek stardate and vice versa.
Add this line to your application's Gemfile:
gem 'ruby-stardate'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby-stardate
2.0.0-p247 :001 > require 'stardate'
=> true
2.0.0-p247 :005 > t = Time.now + 400.years
=> 2413-11-26 18:35:34 +0100
2.0.0-p247 :006 > t.to_stardate
=> 90902.89247608284
2.0.0-p247 :007 > 1513.1.to_time
=> 2324-07-06 10:44:32 +0200
- 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