Skip to content
1 min read · 82 words

@nhtio/adk/batteries/tools/datetime_math

Pre-constructed tools for ISO datetime arithmetic, differences, and timezone-aware formatting.

Remarks

Pre-constructed bundled tools for the datetime_math category. Import individually, the whole category, or import every tool via @nhtio/adk/batteries.

Variables

VariableDescription
dateAddToolAdd or subtract a duration from a date/time.
dateDiffToolCalculate the difference between two dates/times in a chosen unit.
durationFormatToolConvert total seconds into a human-readable duration string.