italian-ruby 1.3.2 → 1.3.3
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/lib/italian/ruby/metodi/date.rb +5 -0
- data/lib/italian/ruby/metodi/time.rb +18 -0
- data/lib/italian/ruby/versione.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6505ead6d72fed78f1d4d7c48534491a91a0e536dc7faae5dc804604b9572f
|
4
|
+
data.tar.gz: a770607fc0744fc593604b33bc4c31431e44aafaf4be80717eea1ad4779e08a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '03193021e1d62380c0a9b73e9a9c6a2a66963fe207a43ca312fe3598b1e7e7df8d6cde855c8c9724d5d5aaf8b1e633b9eed7f0e662a002e98a63264842f0de4f'
|
7
|
+
data.tar.gz: 691daf3b737720b0e206acb33ecf71a28aaa9c13a322948cbb0b8550d87281044cfdc34c78d65c94620c6ea3bbab2f8eca77a0a90b71e4ec1728edaff5919bda
|
@@ -36,6 +36,11 @@ class Date
|
|
36
36
|
Date.new self.year, 12, 31
|
37
37
|
end
|
38
38
|
|
39
|
+
##
|
40
|
+
# Restituisce il tempo all'ora specificata.
|
41
|
+
def alle(ore, minuti = 0, secondi = 0)
|
42
|
+
self.in_tempo.alle ore, minuti, secondi
|
43
|
+
end
|
39
44
|
|
40
45
|
# Formatta la data secondo la rappresentazione passata.
|
41
46
|
def formatta_locale(format)
|
@@ -24,6 +24,24 @@ class Time
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
+
##
|
28
|
+
# Sposta il tempo alle ore specificate.
|
29
|
+
def alle(ore, minuti = 0, secondi = 0)
|
30
|
+
Time.new(self.year, self.month, self.day, ore, minuti, secondi)
|
31
|
+
end
|
32
|
+
|
33
|
+
##
|
34
|
+
# Ritorna il tempo all'inizio del giorno.
|
35
|
+
def inizio_giorno
|
36
|
+
Time.new(self.year, self.month, self.day)
|
37
|
+
end
|
38
|
+
|
39
|
+
##
|
40
|
+
# Ritorna il tempo alla fine del giorno.
|
41
|
+
def fine_giorno
|
42
|
+
Time.new(self.year, self.month, self.day, 23, 59, 59)
|
43
|
+
end
|
44
|
+
|
27
45
|
##
|
28
46
|
# Ritorna il tempo all'inizio dell'ora.
|
29
47
|
def inizio_ora
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: italian-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Ballardin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|