Sha256: 06efb7b34e4764d1623b357acdd6da765da876e3bef55cbc1676dfdb11e0b82c
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
= Spanner Easy way to parse natural language time spans as periods expressed in seconds. Supports float point notions of spans as well. == Installation gem install spanner-lfittl or add this to your Gemfile: gem 'spanner-lfittl', :require => 'spanner' == Usage require 'spanner' Spanner.parse('1s') => 1 Spanner.parse('23 hours 12 minutes') => 83520 Spanner.format(83520) => '23 hours 12 minutes' Spanner.format(83520, :biggest_unit => :minutes) => '1392 minutes' == Authors Original author: Joshua Hull <joshbuddy@gmail.com> Newer contributions: Lukas Fittl <lukas@fittl.com>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spanner-lfittl-0.0.5 | README.rdoc |