app.rb
# Returns current timestamp in same integer format as Nomad with nanoseconds
Returns current timestamp in same integer format as Nomad with nanoseconds
Returns current timestamp in same integer format as Nomad with nanoseconds
def current_timestamp(format: nil)
  timestamp = Time.now.to_f
  case format
  when :nomad
    seconds, subseconds = timestamp.to_s.split(".")
    "#{seconds}#{subseconds}#{'0' * (9 - subseconds.length)}".to_i
  else
    timestamp.to_i
  end
end
def current_timestamp ( format : nil ) timestamp = Time . now . to_f case format when :nomad seconds , subseconds = timestamp . to_s . split ( "." ) "#{seconds}#{subseconds}#{'0' * (9 - subseconds.length)}" . to_i else timestamp . to_i end end
Returns current timestamp in same integer format as Nomad with nanoseconds
Returns current timestamp in same integer format as Nomad with nanoseconds
# Number of subseconds can vary depending on system # Ensure there's always 9 additional digits representing nanoseconds after the timestamp representing seconds
format
<not_specific>