Class: DateTime

Inherits:
Object show all
Defined in:
lib/italian/ruby/metodi/date_time.rb

Instance Method Summary collapse

Instance Method Details

#to_unix_msObject Also known as: in_unix_ms

Restituisce il numero di millisecondi trascorsi dalla Unix Epoch.



7
8
9
# File 'lib/italian/ruby/metodi/date_time.rb', line 7

def to_unix_ms
  strftime("%Q").to_i
end