Я ищу хороший фрагмент JS для преобразования временной метки (например, из API Twitter) в удобное для пользователя относительное время (например, 2 секунды назад, неделю назад и т.д.).
Кто-нибудь хочет поделиться некоторыми из своих любимых методов (желательно, не используя плагины)?