Mercurial > eldonilo > blog
comparison date.js @ 1:82905edac9d8
Fix some things.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 12 Jul 2011 17:47:32 +0200 |
parents | f62b5c395a48 |
children |
comparison
equal
deleted
inserted
replaced
0:f62b5c395a48 | 1:82905edac9d8 |
---|---|
55 return "a month ago"; | 55 return "a month ago"; |
56 if (month > 1) | 56 if (month > 1) |
57 return Math.round(month)+" months ago"; | 57 return Math.round(month)+" months ago"; |
58 | 58 |
59 if (day == 1) | 59 if (day == 1) |
60 return "today"; | 60 return "yesterday"; |
61 if (day > 1) | 61 if (day > 1) |
62 return Math.round(day)+" days ago"; | 62 return Math.round(day)+" days ago"; |
63 | 63 |
64 if (hour == 1) | 64 if (hour == 1) |
65 return "an hour ago"; | 65 return "an hour ago"; |