Ruby for Instance / Epoch

# Get the current time
now = Time.now

# Calculate the number of seconds since the epoch
seconds_since_epoch = now - Time.utc(1970)

# Print the number of seconds since the epoch
puts seconds_since_epoch
# => 1607707986.57141

Try on playground

Next: conversions

made with by dfxe / source / license