4 ms·
So quick question to anyone who's used this lib. The README cites an example: it can give you the date for text like: '1 min ago', '2 weeks ago', '3 months, 1 w
by superchink 12y ago
So quick question to anyone who's used this lib. The README cites an example: it can give you the date for text like: '1 min ago', '2 weeks ago', '3 months, 1 weeks and 1 day ago', etc
Does it handle proper grammar for singular values (i.e., 1 week vs. 1 weeks)?
- nek4life 12y agoI think the line you copied and pasted here answers your own question – '3 months, 1 weeks and 1 day ago.'
- eliasdorneles 12y agoWell, it is meant to be very forgivable. Right now it outputs the same thing for both "1 week ago" and "1 weeks ago" (even though the latter is grammatically incorrect). Can you elaborate what you mean by "proper grammar for singular values"?