Skip to main content
1

🕒 Relative Time

String
Converts a past date into a human-readable “time ago” string (e.g., “2 months ago” or “Just now”).
String
Converts a future date into a human-readable “time until” string (e.g., “in 5 days” or “Just now”).
String
Formats the date into the slash-separated ‘dd/MM/yyyy’ style.
2

🌐 Localization (`intl` dependency required)

String
Gets the full name of the month (e.g., “January”, “December”) based on the system locale.
String
Gets the abbreviated name of the month (e.g., “Jan”, “Dec”) based on the system locale.
String
Gets the full name of the day of the week (e.g., “Monday”, “Sunday”) based on the system locale.
String
Gets the abbreviated name of the day of the week (e.g., “Mon”, “Sun”) based on the system locale.
3

📊 Calendar Math

int
Calculates the ISO 8601 week number (1-53) for the given date.