About

Build status API docs

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.

Installation

Add this to your application's shard.yml:

dependencies:
  hour:
    github: botanicus/hour

Usage

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}!"

Development

gem install guard guard-shell

# Watch for changes and run tests, generate documentation and fix formatting.
guard

TODO