YADTR (Yet Another DateTime Rant)

Dan Sommers dan at tombstonezero.net
Wed Mar 26 23:56:39 EDT 2014


On Thu, 27 Mar 2014 00:16:57 +0000, Steven D'Aprano wrote:

> py> divmod(-30, 24)
> (-2, 18)
> 
> If an event happened 30 hours ago, it is correct to say that it
> occurred "18 hours after 2 days ago", but who talks that way?

Well, not *exactly*, but:

If today happens to be Wednesday, and an event occurred last Friday, I
might say "a week ago Friday."  Similarly, today, I could also say
"it'll be two years at my new job next month."

For an event that occurred approximately 310 days ago, I might say "less
than a year ago," and for an event that occurred approximately 350 days
ago, I might say "a little less than a year ago."

Or did you forget to put the winky there, and I fell for it?

11 years, 2 months, 26 days, 9 hours, 3 minutes, 27.4 seconds'ly yours,
Dan




More information about the Python-list mailing list