Re: Natural-language datetime parsing and display (was: user friendly datetime features)

2008-01-09 Thread Daniel Fetchinson
> For PARSING see http://code-bear.com/code/parsedatetime/ > > The OP was looking for presentation though. I know roundup has code for > this if an independent library can't be found. Thanks for all the responses! Indeed I was looking for presentation and not parsing, I'll take a look at roundup

Re: Natural-language datetime parsing and display (was: user friendly datetime features)

2008-01-09 Thread Eddie Corns
For PARSING see http://code-bear.com/code/parsedatetime/ The OP was looking for presentation though. I know roundup has code for this if an independent library can't be found. Eddie -- http://mail.python.org/mailman/listinfo/python-list

Re: user friendly datetime features

2008-01-09 Thread jim-on-linux
Why not build your own module? You can use it where and when you need it. jim-on-linux http://www.inqvista.com On Tuesday 08 January 2008 20:19, Daniel Fetchinson wrote: > Many times a more user friendly date format is convenient than the > pure date and time. > For example for a date that

Re: Natural-language datetime parsing and display (was: user friendly datetime features)

2008-01-09 Thread Paul McGuire
On Jan 8, 7:57 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > "Daniel Fetchinson" <[EMAIL PROTECTED]> writes: > > I'm guessing this feature is needed so often in so many projects that > > it has been implemented already by several people. Does anyone know of > > such a stand alone module? > > The 'pyt

Re: Natural-language datetime parsing and display (was: user friendly datetime features)

2008-01-09 Thread tahiriman
or just calculate the difference between the moment you are and the date before and display the result in a cases (if diff is one day or 2 days or ...) -- http://mail.python.org/mailman/listinfo/python-list

Natural-language datetime parsing and display (was: user friendly datetime features)

2008-01-08 Thread Ben Finney
"Daniel Fetchinson" <[EMAIL PROTECTED]> writes: > I'm guessing this feature is needed so often in so many projects that > it has been implemented already by several people. Does anyone know of > such a stand alone module? The 'python-dateutil' library allows easy *programmatic* manipulation of re

user friendly datetime features

2008-01-08 Thread Daniel Fetchinson
Many times a more user friendly date format is convenient than the pure date and time. For example for a date that is yesterday I would like to see "yesterday" instead of the date itself. And for a date that was 2 days ago I would like to see "2 days ago" but for something that was 4 days ago I wou