This could be done manually by hardcoding a timelimit at the top of script.py
, using the time
module.
import time
limit_str = 'Wed Feb 26 12:30:00 2014'
limit = time.mktime(time.strptime(limit_str))
if time.time() > limit:
print 'Demo time expired!'
else:
print 'Program logic here'