Variable: dateDiffTool
ts
const dateDiffTool: Tool<SpooledArtifact>;Defined in: batteries/tools/datetime_math/index.ts:113
Calculate the difference between two dates/times in a chosen unit.
Remarks
Result is signed — positive when to is after from, negative otherwise — but rendered as |value| <unit> after/before for readability. Uses luxon's diff().as(unit) which respects calendar arithmetic for months/years.