text_to_ms

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).

Return

the unix timestamp represented by the given text

Since

0.14.14

Parameters

pattern

the time format pattern text

text

the time-formatted text

Throws

exception

if the given text is not formatted according to the given time format pattern text