LOG IN SIGN UP
Documentation

std.integer2time()

Converts an integer, representing seconds since the UNIX Epoch, to a time variable.

If the time argument is invalid then this returns a time value which stringifies to: datetime out of bounds.

To convert a string, use std.time() instead.

Format

TIME
std.integer2time(INTEGER time)

Examples

1
2
3
# var.once will represent: Mon, 02 Jan 2006 22:04:05 GMT
declare local var.once TIME;
set var.once = std.integer2time(1136239445);