Skip to content

calleluks/halftime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Halftime

Build Status Code Climate

A natural language time parser.

Installation

Add this line to your application's Gemfile:

gem "halftime"

And then execute:

$ bundle

Or install it yourself as:

$ gem install halftime

Usage

require "halftime"

Halftime::Parser.new("tomorrow at 12", now: Time.now).time

If a time can not be parsed from the passed string, Halftime::Parser#time will return nil.

About

A natural language time parser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages