How to convert current date to epoch timestamp ?
Format current date:
29.08.2011 11:05:02
import time def expires(): '''return a UNIX style timestamp representing 5 minutes from now''' return int(time.time()+300)