Skip to content

Conversation

@simmo
Copy link
Owner

@simmo simmo commented Jun 11, 2025

Description

Breaking

  • Renames toParts to msToParts
  • Renames MICROSECONDS_IN_A_MILLISECOND to MICROSECONDS_IN_MILLISECOND
  • Renames MILLISECONDS_IN_A_SECOND to MILLISECONDS_IN_SECOND
  • Renames NANOSECONDS_IN_A_MICROSECOND to NANOSECONDS_IN_MICROSECOND

Added

  • msToClock function to convert milliseconds to a clock string
  • clockToMs function to convert a clock string to milliseconds
  • partsToMs function to convert an object with time unit properties to milliseconds
  • Parts interface to represent the parts of a duration
  • TimeUnit type to represent the time unit strings used in the parseDuration function

Fixed

  • Incorrect/missing documentation
  • Floating point conversion error

Checklist

@simmo simmo merged commit d216e99 into main Jun 14, 2025
3 checks passed
@simmo simmo deleted the v2 branch June 14, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants