Mercurial > p > roundup > code
diff roundup/date.py @ 1338:82ff15307f92
not quite right
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 16 Dec 2002 05:03:02 +0000 |
| parents | 95ef1dcbb3be |
| children | fe18877acc56 |
line wrap: on
line diff
--- a/roundup/date.py Mon Dec 16 04:39:36 2002 +0000 +++ b/roundup/date.py Mon Dec 16 05:03:02 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: date.py,v 1.38 2002-12-16 04:39:36 richard Exp $ +# $Id: date.py,v 1.39 2002-12-16 05:03:02 richard Exp $ __doc__ = """ Date, time and time interval handling. @@ -247,15 +247,14 @@ # get the current date as our default y,m,d = time.gmtime(time.time())[:3] - # time defaults to 00:00:00 _always_ - H = M = S = 0 - # override year, month, day parts if info['m'] is not None and info['d'] is not None: m = int(info['m']) d = int(info['d']) if info['y'] is not None: y = int(info['y']) + # time defaults to 00:00:00 now + H = M = S = 0 # override hour, minute, second parts if info['H'] is not None and info['M'] is not None:
