time between now and the next 2:30 am?

Neil Cerutti neilc at norwich.edu
Fri Jul 23 13:06:11 EDT 2010


On 2010-07-23, Jim <jim.hefferon at gmail.com> wrote:
> How can I calculate how much time is between now and the next
> 2:30 am?  Naturally I want the system to worry about leap
> years, etc.

You need the datetime module. Specifically, a datetime and
timedelta object.

-- 
Neil Cerutti



More information about the Python-list mailing list