Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Cannot retrieve contributors at this time
If you're trying to format times for tweets like the way Twitter does, you can use the moment.twitter plugin by @hijonathan.
It's a simple way to display both short and long versions of human-readable timestamps.
// 5 hours
Yes, it does smart pluralization.
// 1 hour
Not short enough for you?
Press h to open a hovercard with more details.