time_clock 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/time_clock/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: 1ded90791cbcc02d14581f1afdfa801f3e98e75d
|
4
|
+
data.tar.gz: a2191cfca3a38027625759cddd9de7a2a2755658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8c7b904ac72cf3a36b75bac46b4887837788f7e3f0f44584a81412cc19629f1eeb00807c4cfc9db2964de89cec24d546c19c55e8152ee31ff3829a7a90491ab
|
7
|
+
data.tar.gz: d57345f61c2a7eb57c0a1c5de6c0442efd2a16603a44fb37407e2c8e940bbc30bf0e89474cf90eb9135e6b509f0e031e9f626b1a2bd971d627114cb01abd0f74
|
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# TimeClock
|
2
2
|
|
3
|
+
Calculate the amount of business time between two times based on any arbitrary work calendar.
|
4
|
+
|
3
5
|
gem 'time_clock'
|
4
6
|
|
5
|
-
|
7
|
+
Once you've set a default calendar, any `Time` instance will have a few helpful methods.
|
6
8
|
|
7
9
|
Time.now.business_seconds_until(Time.now + 1.day)
|
8
10
|
=> 43200
|
@@ -11,7 +13,9 @@ Calculate the amount of business time between two times based on any arbitrary w
|
|
11
13
|
Time.now.business_hours_until(Time.now + 1.day)
|
12
14
|
=> 12
|
13
15
|
|
14
|
-
|
16
|
+
You can also make custom calendars for each calculation (see Calendars section for details).
|
17
|
+
|
18
|
+
**Things you may like about this library:**
|
15
19
|
|
16
20
|
- No dependencies.
|
17
21
|
- Extremely simple codebase. Only 80 lines of code.
|
data/lib/time_clock/version.rb
CHANGED