If you don't mind importing datetime, that could be replaced with...
Oh, neat. I didn't know that you could do that. I don't mind importing datetime, but personally I find the present summation to be a little bit easier to read than constructing a throwaway datetime object. But that's certainly debatable.
On OS X 10.6+, 1 kb = 1000 bytes, not 1024 bytes. Not sure if it'll break anything. Just, FYI
Thanks for the heads up. This won't break anything - this is simply a function for getting human readable labels and, frankly speaking, OSX is wrong about this.
Trac: Status: needs_review to closed Resolution: N/Ato implemented