View Source DateTimeParser.Parser.Time (DateTimeParser v1.2.0)

Tokenizes the string for time elements. This will also attempt to extract the time out of the string first before tokenizing to reduce noise in an attempt to be more accurate. For example,

iex> DateTimeParser.parse_time("Hello Johnny 5, it's 9:30PM")
{:ok, ~T[21:30:00]}

This will use a regex to extract the part of the string that looks like time, ie, "9:30PM"