Show More
@@ -20,7 +20,7 agescales = [("year", 3600 * 24 * 365), | |||||
20 | ("day", 3600 * 24), |
|
20 | ("day", 3600 * 24), | |
21 | ("hour", 3600), |
|
21 | ("hour", 3600), | |
22 | ("minute", 60), |
|
22 | ("minute", 60), | |
23 |
("second", 1) |
|
23 | ("second", 1)] | |
24 |
|
24 | |||
25 | def age(date): |
|
25 | def age(date): | |
26 | '''turn a (timestamp, tzoff) tuple into an age string.''' |
|
26 | '''turn a (timestamp, tzoff) tuple into an age string.''' |
General Comments 0
You need to be logged in to leave comments.
Login now