Project

ventana

0.0
No commit activity in last 3 years
No release in over 3 years
Ventana takes two dates and gives you a nice string with the window between those two dates
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.5
>= 0

Runtime

>= 0
 Project Readme

Ventana

Gem Version Build Status Coverage Code Climate

Ventana takes two dates and gives you a nice string with the window between those two dates

Installation

Add this line to your application's Gemfile:

gem 'ventana'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ventana

Usage

Just pass two dates to the Ventana method and get back a string with the window between those two dates.

date1 = Time.new(2014,6,3,4)
date2 = Time.new(2014,6,4,7)

puts Ventana(date1,date2)
# => June 3 to 4, 2014 from 4AM to 7AM

For more exeamples of how different times and dates are rendered check out the example file.

Contributing

  1. Fork it ( http://github.com/sagmor/ventana/fork )
  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