1 repositorio
Utilities that provide symmetric conversion between numeric durations and human-readable time strings.
Distinct from Number-to-Word Converters: Unlike Number-to-Word Converters which focus on linguistic translation of integers, this focuses on the mapping between machine durations and unit-based strings.
Explore 1 awesome GitHub repository matching software engineering & architecture · Bidirectional Time Mappers. Refine with filters or upvote what's useful.
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 library provides bidirectional mapping, allowing for the conversion of raw numbers to strings and the parsing of strings containing units like days, hours, and minutes back into numeric millisecond counts. It supports both abbreviated and full written-out time formats.
Implements paired logic to convert milliseconds to strings and strings back to milliseconds using a shared scale.