relative-time-converter
relative-time-converter is a lightweight utility that converts absolute dates or timestamps into human-friendly, relative time phrases like "2 hours ago" or "in 3 days." Perfect for improving date displays in apps, websites, or dashboards.
gloomydate
A library for calculating relative time strings, compatible with both ESM and MPA environments.
uploaded-time-ago
It calculates the time just like Facebook whenever a new post or anything is uploaded and this function is used to calculate the time distance from the current time.