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

```
INTEGER parse_time_delta(STRING specifier)
```

**Available in:** all subroutines

Parses a string representing a time delta. This function supports the
specifiers `d` and `D` for days, `h` and `H` for hours, `m` and `M` for
minutes, and `s` and `S` for seconds. The function parses individual
deltas. Strings like "10d11h3m2s" are not supported.

This function is not prefixed with the `std.` namespace.

## Example

```vcl
set beresp.ttl = parse_time_delta(beresp.http.Edge-Control:cache-maxage);
```
