date_diff
Exact difference between two dates or timestamps in years, months, days, hours and total seconds. 0.001 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date or timestamp, default now | |
| from | Yes | Start date or timestamp | |
| paymentProof | No | Payment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof. |