Convert String to UTC

t = utc.val(txt)

Convert text to either full date, or seconds-past-midnight.

Parameter Type Description
txt string Time text to convert
Returns Type Description
t integer UTC or seconds-past-midnight value

e.g.

local v = utc.val('08:00') --> 28800
local v = utc.val('2017-06-03 12:15:00') --> 1496492100