On 6/25/06, Dirk Stoop <[EMAIL PROTECTED]> wrote: > python-dateutil is very cool for getting a correct date from a > relative difference, it seems like they put a lot of work in getting > all of the nasty bits (like leapyears etc.) right, but does anyone > know about a library that can do this the other way around?
Actually, I wrote almost exactly what you want this weekend: http://www.lesher.ws/timewords.py timedelta values don't carry enough information to tell how long "1 month ago" was, so my implementation only goes up to weeks. I didn't need support for negative values, but it wasn't hard to add. -- Tim Lesher <[EMAIL PROTECTED]> Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

