I'm looking for an intelligent date conversion module

M

mthorley

Greetings, I'm looking for a python module that will take a datetime
obj and convert it into relative time in english.
For example: 10 minutes ago, 1 Hour ago, Yesterday, A few day ago, Last
Week, etc

I've looked around on the web, in the docs, the cheeseshop and on this
list and have found what I'm looking for.
Am I just blind? (likely), If anyone can give me a tip on how to do
this I'd really appreciate it.

thanks
 
T

Tim Golden

mthorley said:
Greetings, I'm looking for a python module that will take a datetime
obj and convert it into relative time in english.
For example: 10 minutes ago, 1 Hour ago, Yesterday, A few day ago, Last
Week, etc

For the very little it's worth, I offer the following:

http://timgolden.me.uk/python/datediff.py

It doesn't do everything you want, but it should
be a starting point.

TJG
 
W

Will McGugan

mthorley said:
Greetings, I'm looking for a python module that will take a datetime
obj and convert it into relative time in english.
For example: 10 minutes ago, 1 Hour ago, Yesterday, A few day ago, Last
Week, etc

I feel for you. I'm always on the lookout for an intelligent date.
 
N

neoedmund

I'm more familiar with java. maybe java.util.Calendar can be port to
python? i donnt know.


mthorley $B$N%a%C%;!<%8(B:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,627
Members
45,329
Latest member
InezZ76898

Latest Threads

Top