time_difference 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +3 -0
- data/README.md +2 -2
- data/time_difference.gemspec +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -30,14 +30,14 @@ And then execute:
|
|
30
30
|
TimeDifference.between(start_time, end_time).in_months
|
31
31
|
=> 12.0
|
32
32
|
|
33
|
-
### Get the time difference
|
33
|
+
### Get the time difference in each component
|
34
34
|
|
35
35
|
start_time = Time.new(2013,1)
|
36
36
|
end_time = Time.new(2014,1)
|
37
37
|
TimeDifference.between(start_time, end_time).in_each_component
|
38
38
|
=> {:years=>1.0, :months=>12.0, :weeks=>52.14, :days=>365.0, :hours=>8760.0, :minutes=>525600.0, :seconds=>31536000.0}
|
39
39
|
|
40
|
-
### If you would like
|
40
|
+
### If you would like an overall estimated time component, use in_general (not that accurate)
|
41
41
|
|
42
42
|
start_time = Time.new(2013,1)
|
43
43
|
end_time = Time.new(2014,1)
|
data/time_difference.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
12
12
|
gem.name = "time_difference"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = "0.3.
|
14
|
+
gem.version = "0.3.1"
|
15
15
|
|
16
16
|
gem.add_runtime_dependency('activesupport')
|
17
17
|
gem.add_development_dependency('rspec', '~> 2.13.0')
|