The code:
1
2
3
4
5
2
3
4
5
function string_to_epoch(str) 	local t_hour, t_min, t_sec, t_day, t_month, t_year = str:match('(%d+):(%d+):(%d+) (%d+)/(%d+)/(%d+)') 	 	return os.time({ year = t_year, month = t_month, day = t_day, hour = t_hour, min = t_min, sec = t_sec, isdst = false }) end
The input:
1
'05:34:01 23/06/19'
The output:
nil
I've checked and the table does seem to contain the information it's supposed to.