Registry / utility / natural-time

natural-time

JSON →
library0.4.1rbrubygemsunverified

Smart enumeration of durations in natural language, e.g. '4 hours, 3 minutes and 2 seconds'.

gem install natural_time
INSTALL
IMPORT
SIG · NATURAL-TIME
N
natural-time
utilityrubyv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NaturalTime
require 'natural_time'

Convert seconds to a human-readable duration.

require 'natural_time' NaturalTime.new(150).to_s # => "2 minutes, 30 seconds"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
natural-time — gem install natural-time · libregistry