Skip to content

v3.5.0

Latest

Choose a tag to compare

@johnnyt johnnyt released this 09 Sep 17:49
2d62ca1

[3.5.0] - 2025-09-09

Added

Adds milliseconds support to duration system

  • New 'ms' unit support in lexer, parser, and evaluator
  • Duration.to_milliseconds/1 function for high-precision calculations
  • Pattern matching guards for automatic precision selection
  • Smart DateTime arithmetic (millisecond vs second precision)
  • Comprehensive test coverage with 89 new tests
  • Refactors evaluator to use Duration module functions (DRY)

Examples

  • 500ms ago, 2s750ms from now
  • #2024-01-15T10:30:00.000Z# + 1s500ms
  • Automatic precision: ms > 0 triggers millisecond precision