indonesia_timezone 0.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.
- checksums.yaml +7 -0
- data/lib/indonesia_timezone.rb +23 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4ca29f31f9325bcb93b8cbb0cf37108e5aa623a4d91ec564b2327f0b1f2834f5
|
|
4
|
+
data.tar.gz: 9194121d5f2739a0b888ab233e37dd75de2eaee3c6a57a1f41ec3183c4cc0d63
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 55f9aa573d2c44475ee970e17c8488fbfa33f34c605a3daa649f7871184964d4f844ca4d95e491edec898fb95380c62bf8d5395c31a68fca0af8d04f192c91bf
|
|
7
|
+
data.tar.gz: 9361ec8188f163ca1949045548f3173e9ae6de7dfbaebc293bcdc2761a34d6b1e55d1d8e7dfbdf2db0e9d6c3a7fc9d5108050622f4ab57b2d1936e6c8d231706
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class Ina_timezone
|
|
2
|
+
|
|
3
|
+
# get definition time now utc
|
|
4
|
+
@@time_utc = Time.now.utc
|
|
5
|
+
|
|
6
|
+
def self.wib
|
|
7
|
+
# count wib
|
|
8
|
+
time_wib = @@time_utc + (7 * 3600)
|
|
9
|
+
puts time_wib.strftime('%H:%M')
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.wit
|
|
13
|
+
# count wit
|
|
14
|
+
time_wit = @@time_utc + (9 * 3600)
|
|
15
|
+
puts time_wit.strftime('%H:%M')
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def self.wita
|
|
19
|
+
# count wita
|
|
20
|
+
time_wita = @@time_utc + (8 * 3600)
|
|
21
|
+
puts time_wita.strftime('%H:%M')
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: indonesia_timezone
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Guruh Rachmat Pribadi
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: The Indonesia Timezone gem allows users to easily obtain the time in
|
|
14
|
+
the Western, Eastern, and Central time zones of Indonesia.
|
|
15
|
+
email: github.guruh@gmail.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- lib/indonesia_timezone.rb
|
|
21
|
+
homepage: https://rubygems.org/gems/indonesia_timezone
|
|
22
|
+
licenses:
|
|
23
|
+
- MIT
|
|
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
|
+
rubygems_version: 3.4.10
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: 'Indonesia Timezone: A Ruby gem for working with timezones in Indonesia.'
|
|
44
|
+
test_files: []
|