ebay_convert_date_to_timestamp
Convert a date string, number, or relative time to a Unix timestamp (milliseconds) for setting token expiry times. Handles ISO 8601, Unix timestamps, and expressions like 'in 2 hours'.
Instructions
Convert a date string or number to Unix timestamp (milliseconds). Supports ISO 8601 dates, Unix timestamps (seconds or milliseconds), and relative time (e.g., "in 2 hours", "in 7200 seconds"). Useful when setting token expiry times from user input.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dateInput": "<dateInput>"
},
"name": "ebay_convert_date_to_timestamp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateInput | Yes | Date to convert as an ISO date string, Unix timestamp, or relative time |