I've looked at the Python Time module and can't find anything that gives the integer of how many seconds since 1970 as PHP does with time().
Am I simply missing something here or is there a common way to do this that's simply not listed there?
I've looked at the Python Time module and can't find anything that gives the integer of how many seconds since 1970 as PHP does with time().
Am I simply missing something here or is there a common way to do this that's simply not listed there?
time.time() does it, but it might be float instead of int which i assume you expect. that is, precision can be higher than 1 sec on some systems.
I recommend reading "Date and Time Representation in Python". I found it very enlightening.