# Collection of code snippets by Arne Vajhøj 
# (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
from datetime import date
import time

v = 20190404
d = date(v / 10000, (v / 100)  % 100, v % 100)
print d
t = time.mktime(d.timetuple())
print t
t = t + 20 * 60 * 60
print t
