precise_distance_of_time_in_words 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/precise_distance_of_time_in_words/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99dd828ec9a6f3f8f69ea60589d4b4953fafa992
|
4
|
+
data.tar.gz: ae89385c82b3ca4f3187781f0ad46b6c795b9b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b2cae2c84abfd3f546d21958613095efbbcee2cf3827fef7b66892777188f63fd7655df30302e1441927e1c5614433f3e9fab0422fcc6794ce26835448bc3a
|
7
|
+
data.tar.gz: ddb4af9acac237e2148748d56fdecfb3c6bf0e56b51aa90d6a41e120417c475495053cce5865611fca63495433d64b7c8b4a863f4dfcaf0884501d8a39a2a420
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PreciseDistanceOfTimeInWords
|
2
2
|
|
3
|
-
|
3
|
+
This gem offers a more precise "distance_of_time_in_words"
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,11 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
This gem offers to you a method called "precise_distance_of_time_in_words(from, to)"
|
22
|
+
To you user it just puts that method in where you want (console, view, model) with the times.
|
23
|
+
For exemple:
|
24
|
+
precise_distance_of_time_in_words(0, 1) #return '1 second'
|
25
|
+
precise_distance_of_time_in_words(Time.now, Time.now + 1.hour + 1.minute) #return '1 hour and 1 minute'
|
22
26
|
|
23
27
|
## Contributing
|
24
28
|
|