varwg.times.str2unix

varwg.times.str2unix(str_, d_format='%d.%m.%Y %H:%M:%S')[source]

Converts a time-string of the given d_format (default: “dd.mm.yyyy HH:MM:SS”) into a unix-timestamp.

>>> str2unix("01.01.2040 00:00:00")
2208988800.0
>>> str2unix("01.01.1970 00:00:00")
0.0