timezone-to-utc 1.0.0

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/utctime +4 -0
  3. data/lib/utctime.rb +5 -0
  4. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6062fcd16db2bf64fefe0c2474955127dabb7224
4
+ data.tar.gz: 2754aef8d9a9c5e11f42d7d5735a5cf7f36382ac
5
+ SHA512:
6
+ metadata.gz: 11697869110b2b6b25cf73f42c43b8f9645bf8cb9f712b1f53c70ca7c78c20c27b532301560d21f006c8d7278d323ea9e6cbe048d1badf3f46bb4c4872fddb63
7
+ data.tar.gz: b63f80b97c92861f2a26083a6e04b7346916cc01e9c45dbc0f83d26de50fc10f8a1a51570689911d3cbc6f0fccf6a96c92fe84e6973c1b22ef3384ed606b58a5
data/bin/utctime ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "utctime"
4
+ UTCTime.new
data/lib/utctime.rb ADDED
@@ -0,0 +1,5 @@
1
+ class UTCTime
2
+ time = Time.new
3
+ puts "Your current time is " + time.strftime('%H:%M') + " " + time.zone + "."
4
+ puts "The UTC time is " + time.utc.strftime('%H:%M') + "."
5
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: timezone-to-utc
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Lindsey Dragun
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables:
16
+ - utctime
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/utctime
21
+ - lib/utctime.rb
22
+ homepage:
23
+ licenses: []
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.4.6
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: My first Gem, tells you your time and the UTC time
45
+ test_files: []