LOG IN SIGN UP
Documentation

std.integer2time

Converts an integer to a time variable. To use a string, use std.atoi.

Comparison operators like > < >= <= == != do not work with std.time or std.integer2time. Instead, you can compare two times using something similar to this:

if (time.is_after(now, std.integer2time(std.atoi("1445445162")))) {
  # do something
}

Format

std.integer2time(seconds_since_epoch)

Examples

std.integer2time(std.atoi("1445445162"));