Sha256: 975459bca89489893cbc7ff433b345e08036b2636af036bba0511b1129aeeeb8

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

= 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
  
  Spanner.format(83520)
  => '23 hours 12 minutes'
  
== Authors

Original author:
Joshua Hull <joshbuddy@gmail.com>

Newer contributions:
Lukas Fittl <lukas@fittl.com>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spanner-lfittl-0.0.4 README.rdoc
spanner-lfittl-0.0.3 README.rdoc