Registry / utility / time-difference

time-difference

JSON →
library0.7.0rbrubygemsunverified

Calculates the difference between two times in years, months, weeks, days, hours, minutes, and seconds.

gem install time_difference
INSTALL
IMPORT
SIG · TIME-DIFFERENCE
T
time-difference
utilityrubyv0.7.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.

TimeDifference
require 'time_difference'

Compute the difference between two times in years.

require 'time_difference' start = Time.new(2023, 1, 1) finish = Time.new(2024, 1, 1) TimeDifference.between(start, finish).in_years
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
time-difference — gem install time-difference · libregistry