goodday dot py

Looking at rails and the datejs library, I can't help but feel bummed that Python doesn't have an expressive date library like that. So I started one. I've put up my code on google code
Carlo said about 1 year ago
I tried this with your library:

>>> minutes(5).ago() == now() - minutes(5)
True
>>> minutes(5).ago()
Date(02/18/10 11:35AM)
>>> now() - minutes(5)
Date(02/18/10 11:35AM)
>>> now()
Date(02/18/10 11:45AM)

>>> minutes(5)
TimeInterval(0 day 0 hour and 10 minutes)

Am I loosing some rounding?

Thanks,
 Carlo
Toby said about 1 year ago
That is strange, Carlo. I can't reproduce what you are seeing though. What version of Python are you running this on?

Leave Comment

optional