datetime - Python's timedelta: can't I just get in whatever time unit I want the value of the entire difference? -
I have been trying to keep some clever dates since a post on my site ("Since, etc .. ") And I'm using datetime.timedelta difference between the date and the date of the UTC stored in the database for a post.
It seems, according to the docs, I have to use days of attribute and seconds attribute, I want to get fancy date wire.
Can I not find the value of the whole difference in whatever unit of time I can get? Am I forgetting something?
It would be right if I could get the full difference in seconds.
It seems that Python 2.7 has introduced a method, which you wanted, my Believe it!
Comments
Post a Comment