class ArkEcosystem::Crypto::Utils::Slot

The slot helper.

Public Class Methods

get_epoch() click to toggle source
# File lib/arkecosystem/crypto/utils/slot.rb, line 15
def self.get_epoch
  network = ArkEcosystem::Crypto::Configuration::Network.get

  Time.parse(network.epoch).to_time.to_i
end
get_time() click to toggle source
# File lib/arkecosystem/crypto/utils/slot.rb, line 9
def self.get_time
  network = ArkEcosystem::Crypto::Configuration::Network.get

  (Time.now.utc - Time.parse(network.epoch).to_time.to_i).to_i
end