Natural language time span parsing
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec length of month support. defaults to current month length May 3, 2010
README.rdoc
Rakefile
VERSION
spanner.gemspec

README.rdoc

Spanner

Easy way to parse natural language time spans as periods expressed in seconds. Supports float point notions of spans as well.

Usage

require 'spanner'

Spanner.parse('1s')
=> 1

Spanner.parse('23 hours 12 minutes')
=> 83520