Registry / web-framework / dotiw
library5.5.0rbrubygemsunverified

dotiw is a gem for Rails that overrides the default distance_of_time_in_words and provides a more accurate output down to the second.

gem install dotiw
INSTALL
IMPORT
SIG · DOTIW
D
dotiw
web-frameworkrubyv5.5.0
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.

Dotiw
require 'dotiw'

Override Rails' distance_of_time_in_words with more precise output

require 'dotiw' # In Rails views: # distance_of_time_in_words(Time.now, 2.hours.from_now) # => "about 2 hours" # With dotiw, you get more precision: "2 hours 0 minutes 0 seconds"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.5.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
dotiw — gem install dotiw · libregistry