We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

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
declare local var.once TIME;
set var.once = std.integer2time(1136239445);
# var.once now represents "Mon, 02 Jan 2006 22:04:05 GMT"