---
title: "millisToInterval"
canonical: "https://support.appfire.com/space/PSCONF/15303245/millisToInterval"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | millisToInterval(millis) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Converts milliseconds to a time interval.

Converts milliseconds to a time interval.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | millis | Number | Yes | Specifies the milliseconds to convert. |

## Return Type

**Interval**

## Example

```javascript
return millisToInterval(616623112);
```

Outputs: 1w 3h 17m 3s

## See also

> Macro (contentbylabel)