Relative Time Formatter
RelativeTimeFormatterRelative Time Formatter: Relative Time Formatter converts Unix timestamps and ISO dates into readable relative time phrases. Choose between short, long, or abbreviated styles to get humanized past or future strings, millisecond differences, and unit breakdowns from seconds to years. (Cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "RelativeTimeFormatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO date string | |
| style | No | Output style | short |
| reference | No | Reference time to compare against (default: current time) | |
| timestamp | No | Unix timestamp in seconds or milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |