Hour class to work with hours, minutes and seconds, convert between various units and format the output. Here's version of this library for Ruby: hour-ruby.
Add this to your application's shard.yml
:
dependencies:
hour:
github: botanicus/hour
require "hour"
hour = Hour.from(minutes: 85)
puts "It's #{hour.hours.value}:#{hour.minutes.value}!"
hour = Hour.new(1, 25) + Hour.new(s: 10)
puts "It's #{hour.to_s}!"
puts "The system time is #{Hour.now}!"
gem install guard guard-shell
# Watch for changes and run tests, generate documentation and fix formatting.
guard
- Fix TODOs in the code.
- Release version 0.1.