This is a JavaScript time conversion library designed to format millisecond integers as human-readable durations and parse unit-based strings back into total milliseconds. It serves as a utility for managing the transition between machine-readable durations and text representations.
The main features of vercel/ms are: Time Conversion Utilities, Human-Readable Time Delta Formatters, Duration Formatters, Date and Time Libraries, Unit Conversions, Duration String Parsers, Bidirectional Time Mappers, Iterative Remainder Formatting.
Open-source alternatives to vercel/ms include: rauchg/ms.js — ms.js is a millisecond conversion library providing tools to format durations into text and parse human-readable time… iamkun/dayjs — Day.js is a lightweight utility for parsing, validating, and manipulating date objects. It provides a fluent,… hustcc/timeago.js — timeago.js is a JavaScript library that converts timestamps into human-readable relative time strings. It functions as… matthewyork/datetools — DateTools is a date manipulation library for iOS applications that provides utilities for date arithmetic, range… moment/luxon — Luxon is a JavaScript library for parsing, validating, manipulating, and formatting dates and times. It provides a… moment/moment — Moment is a JavaScript date manipulation library used for parsing, validating, manipulating, and formatting dates and…
ms.js is a millisecond conversion library providing tools to format durations into text and parse human-readable time strings back into numbers. It functions as a utility for translating numeric millisecond values into human-readable strings and converting time units such as days, hours, and minutes into numeric milliseconds. The project covers time parsing and formatting, enabling the translation of human-readable time units into millisecond values for application timeout management and duration unit conversion. It includes tools for transforming millisecond durations into both concise and l
Day.js is a lightweight utility for parsing, validating, and manipulating date objects. It provides a fluent, chainable interface that allows for complex time calculations and transformations to be performed through a sequence of readable method calls. By utilizing an immutable wrapper pattern, the library ensures data integrity by creating new instances for every operation rather than modifying existing objects. The project is distinguished by a minimalist core abstraction that maintains a small footprint by offloading non-essential features to an optional, modular plugin system. This archit
timeago.js is a JavaScript library that converts timestamps into human-readable relative time strings. It functions as an internationalized date library that transforms static date and time data into descriptive statements of elapsed time. The project provides a dynamic time updater that automatically refreshes relative time labels on a webpage at regular intervals. It supports multilingual date localization, allowing time-elapsed statements to be translated into various languages using built-in or custom locale settings.
DateTools is a date manipulation library for iOS applications that provides utilities for date arithmetic, range management, and relative time formatting. It functions as a set of tools to shift dates by specific units, calculate durations between timestamps, and convert dates into localized, human-readable strings. The library specializes in the analysis of time spans, offering systems to define, compare, and organize overlapping or sequential time periods. It includes logic to determine chronological relationships, such as whether dates fall within specific windows or how different time per