Skip to content
1 min read · 45 words

Variable: dateDiffTool

ts
const dateDiffTool: Tool<SpooledArtifact>;

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.