utc_converter_tool 0.0.8 → 0.0.9
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 +8 -8
- data/lib/utc_converter_tool.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTNmNDBhZTQ5YjY2YTliYzVlNmY0MzFjNTExYThlMGYyY2U0NzI2OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDdlOTEzMTQ5OGRiZjMyNjc2MWY2NTUwMDhlMWJmNGE0NzYzMzlhYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWQ5OGE5ODQ4NmY1OTRiMjUwYzg1MTcwNDBmOTJmZjQwMTRkY2IwNDM3YTJj
|
10
|
+
NGQ0NWNjMmFkMDQ2Y2IxOGM0ODQ0NTg1YWVjYjQxOTRkYjRiMzg5MTQ4ODc3
|
11
|
+
YWQ1NDAyMThmYjdkZGUxODQ2ZThhODc5OTIzYTlkM2RjZGQ4OWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjUxYzg0M2JhNWUwMzE4M2Q4MDM4MzMwNDJhN2RlMGJmZWJkMTAzZWQzOWRi
|
14
|
+
YzE2MDIxNDc3NzY1Nzk5YjM5ODNlZTQ2MWIxZmZhZDhmYWE2MWE5MjEyYmY3
|
15
|
+
NTY5MzVlMzUxNzEzMTJlODIwMmY5OWY4ODhlNjQ5NDk4NTJlOTI=
|
data/lib/utc_converter_tool.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
class TimeConverter
|
2
2
|
|
3
|
-
#attr_accessor :selected_timezone
|
4
3
|
#list of Time zones and their UTC Offset
|
5
4
|
UTC_HOUR_OFFSET = {'HST'=>-10, 'AKST'=>-9, 'PST'=>-8,'MST'=>-7, 'CST'=>-6, 'EST'=>-5}
|
6
5
|
|
@@ -8,7 +7,7 @@ class TimeConverter
|
|
8
7
|
@hours = hours.to_i
|
9
8
|
@minutes = minutes.to_i
|
10
9
|
@seconds = seconds.to_i
|
11
|
-
@selected_timezone = selected_timezone
|
10
|
+
@selected_timezone = selected_timezone
|
12
11
|
end
|
13
12
|
|
14
13
|
#------Conversion Methods------#
|