[Tutor] datetime module problem

Dick Moores rdm at rcblue.com
Fri Apr 18 16:37:32 CEST 2008

At 02:17 AM 4/18/2008, Sander Sweers wrote:
>On Fri, Apr 18, 2008 at 4:49 AM, Dick Moores <rdm at rcblue.com> wrote:
> > Got it, I think. <http://py77.python.pastebin.com/f61a3c84f>
>Here is a my somewhat simplified version of your daysDelta script. It
>uses less variables but I am not sure if it is faster?

Thanks for the improvement.

>One thing you might want to do is look at catching wrong input. For
>example when you enter nodate instead of 4/10/2008 it will raise a
>ValueError. I'll give a hint, look at try and except.

Yes, I know how to do that, and will.


UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/ 

More information about the Tutor mailing list