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

```
TIME time.hex_to_time(INTEGER divisor, STRING dividend)
```

**Available in:** all subroutines

This specialized function takes a hexadecimal string value, divides it by 
`divisor`, and interprets the result as seconds since the 
[Unix Epoch](https://en.wikipedia.org/wiki/Unix_time).

## Example

```vcl
declare local var.hextime TIME;
set var.hextime = time.hex_to_time(1, "43b9a355");
# var.hextime is now "Mon, 02 Jan 2006 22:04:05 GMT"
```
