TimeExtended Gem
A simple gem for extension the Ruby class DateTime
Installation
Add this line to your application's Gemfile:
gem 'time_extended'
And then execute:
$ bundle
Or install it yourself as:
$ gem install time_extended
Usage
require 'date'
require 'time_extended'
DateTime.now.ymd # => strftime("%y %m %d") => "14 11 06"
DateTime.now.Bd # => strftime("%B %d") => "November 06"
DateTime.now.M3N # => strftime("%M %3N") => "51 963"
Contributing
- Fork it ( https://github.com/randsina/bsuir-courses-ruby/fork )
- 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 a new Pull Request