---
title: std.integer2time
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/date-and-time/std-integer2time
---

```
TIME std.integer2time(INTEGER time)
```

**Available in:** all subroutines

Converts an integer, representing seconds since the
[Unix Epoch](https://en.wikipedia.org/wiki/Unix_time), to a time variable.

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

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

## Example

```vcl
declare local var.once TIME;
set var.once = std.integer2time(1136239445);
# var.once now represents "Mon, 02 Jan 2006 22:04:05 GMT"
```
