nospam at example.com
Sun Sep 28 11:36:13 CEST 2008
marek.rocki at wp.pl wrote:
> from datetime import datetime, timedelta
> span = datetime.now() -
> if span < timedelta(minutes=37):
> # do something
timedelta! Yes, it's obvious that's what I was looking for. I was stuck
with 'timespan' in my head and couldn't find anything like it in the docs.
Thank you very much!
More information about the Python-list