italian-ruby 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb58d8626b35d2a70f29c72e1133459caac1ad9ed0b53d34aff28ac024e55423
4
- data.tar.gz: 67fd9bfc5cb85f549168633f9d6420853fffd8e57fbedd77c14877e91f93f8ad
3
+ metadata.gz: 2f6505ead6d72fed78f1d4d7c48534491a91a0e536dc7faae5dc804604b9572f
4
+ data.tar.gz: a770607fc0744fc593604b33bc4c31431e44aafaf4be80717eea1ad4779e08a1
5
5
  SHA512:
6
- metadata.gz: 7337cf9a74ed29e9d5f5fb1e641e0ebcf2eca03ab439753a659ac1f1588a5813c47d39619d058f08778629d4376b8328cd6006ea776e2393c7780df12498df53
7
- data.tar.gz: bfae7e1c3f2ca9eb0f166f28c76d9def5449272fbfd9cf383a8041222471212e177b9e54f3da5d8c768d7ebbd3f269ba2fd95f0e9538b42fcb1d3d7266221033
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
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSIONE = "1.3.2"
3
+ VERSIONE = "1.3.3"
4
4
  end
5
5
  end
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2021-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler