# text_to_ms · Rell standard library · Chromia Docs (concept)

> function text_ to_ ms(pattern: text , text: text ): integer Parse a unix timestamp from text formatted according to the given time format pattern text. Equ

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.time/text_to_ms/

FUNCTION

# text\_to\_ms

```signature
function text_to_ms(pattern: text, text: text): integer
```

Parse a unix timestamp from text formatted according to the given time format pattern text.

Equivalent to `rell.time.format(pattern).text_to_ms(text)`.

**Parameters**

* **pattern** — the time format pattern text
* **text** — the time-formatted text

**Returns**

the unix timestamp represented by the given text

**Throws**

* `exception` — if the given text is not formatted according to the given time format pattern text

Since 0.14.14

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/rell.time/text_to_ms.html)Generated API reference, mirrored from the live docs
