Project

spanner

0.01
No commit activity in last 3 years
No release in over 3 years
Natural language time span parsing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.0
>= 0
 Project Readme

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