compact_time 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/compact_time.rb +2 -2
- 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: bf82e535cf1d9d8e1b66223dd783a65bb1f65922
|
4
|
+
data.tar.gz: f278ac4035fe44aeb4cdf469cc4b6c9e6318d5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e7e92249fe9e1b2d44fe1ad8774fa53f87c1e2f3121c080afff93618499f677400574522de95294cb64a57069316ee886ec5e0a8f11ce26b32cfe4737e056f4
|
7
|
+
data.tar.gz: 1f9c4a41ecdd3ce83d3b9aca38a186ba31f045b16c9900f8769b600b7f5a49646d81c74ee2714534065cc52892229455a3987a9d2fc61500b2b8deb56883d597
|
data/lib/compact_time.rb
CHANGED
@@ -9,10 +9,10 @@ class Time
|
|
9
9
|
[cpt_year, cpt_season, cpt_week, cpt_day, hour, min, cpt_offset, sec, usec]
|
10
10
|
end
|
11
11
|
def compact
|
12
|
-
"%02d%s
|
12
|
+
"%02d %s%02d %s%02d%02d".freeze % compact_array
|
13
13
|
end
|
14
14
|
def full
|
15
|
-
"%d%s
|
15
|
+
"%d %s%02d %s%02d%02d%s %02d %06d".freeze % full_array
|
16
16
|
end
|
17
17
|
|
18
18
|
private
|