# Get Time

Generates a timestamp showing the amount of time since the UNIX epoch (1970-01-01 00:00:00 UTC). Uses the W3C High Resolution Time API. Get Time lives in the **Date & Time** category of the `fx` menu.

## Parameters

| Parameter   | Type   | Required | Default       | Description                                                                                 |
| ----------- | ------ | -------- | ------------- | ------------------------------------------------------------------------------------------- |
| Input       | string | yes      | —             | Value to transform. Previous step output or a literal.                                      |
| Granularity | string | no       | `Seconds (s)` | Choose one of: `Seconds (s)`, `Milliseconds (ms)`, `Microseconds (μs)`, `Nanoseconds (ns)`. |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                            |
| -------- | -------------------------------------- |
| `number` | Result of the Get Time transformation. |

## Example

<details>
<summary>Run Get Time</summary>

Generates a timestamp showing the amount of time since the UNIX epoch (1970-01-01 00:00:00 UTC). Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Granularity** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
