varwg.times.unix2str

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

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

>>> unix2str(2208988800.5)
'01.01.2040 00:00:00'
>>> unix2str(0)
'01.01.1970 00:00:00'