Skip to content

Commit e711a26

Browse files
committed
tweaked the verbiage "1" -> "a"
1 parent c03193f commit e711a26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jquery.timeago.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Time Ago (for jQuery) version: 0.1 (07/18/2008)
2+
* Time Ago (for jQuery) version: 0.2 (07/18/2008)
33
* @requires jQuery v1.2 or later
44
*
55
* Timeago is a jQuery plugin that makes it easy to support automatically
@@ -32,15 +32,15 @@
3232
var years = days / 365;
3333

3434
var words = seconds < 45 && "less than a minute" ||
35-
seconds < 90 && "about 1 minute" ||
35+
seconds < 90 && "about a minute" ||
3636
minutes < 45 && Math.round(minutes) + " minutes" ||
37-
minutes < 90 && "about 1 hour" ||
38-
hours < 24 && Math.round(hours) + " hours" ||
39-
hours < 48 && "about 1 day" ||
37+
minutes < 90 && "about an hour" ||
38+
hours < 24 && "about " + Math.round(hours) + " hours" ||
39+
hours < 48 && "a day" ||
4040
days < 30 && Math.floor(days) + " days" ||
41-
days < 60 && "about 1 month" ||
41+
days < 60 && "about a month" ||
4242
days < 365 && Math.floor(days / 30) + " months" ||
43-
years < 2 && "about 1 year" ||
43+
years < 2 && "about a year" ||
4444
Math.floor(years) + " years";
4545

4646
return words + " ago";

0 commit comments

Comments
 (0)