What's the best way to make a time from "Today" or "Yesterday" and a time in Python?

Posted by sh1mmer on Stack Overflow See other posts from Stack Overflow or by sh1mmer
Published on 2009-02-16T02:30:50Z Indexed on 2010/03/28 22:13 UTC
Read the original article Hit count: 134

Filed under:
|
|

Python has pretty good date parsing but is the only way to recognize a datetime such as "Today 3:20 PM" or "Yesterday 11:06 AM" by creating a new date today and doing subtractions?

© Stack Overflow or respective owner

Related posts about python

Related posts about datetime