Difference between two dates
date_diffTime between two dates or timestamps: total days, weeks, hours, minutes and seconds, a years-months-days breakdown, and the number of weekdays (Monday-Friday) in between. Use for deadlines, ages and durations. Example: from=2026-01-01, to=2026-10-18. Price $0.003/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only; not marked read-only because each call is charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date or ISO timestamp | |
| from | Yes | Start date or ISO timestamp |