time_unix
Convert a date/time or 'now' into Unix epoch seconds or milliseconds, with timezone input for accurate timestamp generation.
Instructions
Convert a date/time to unix epoch seconds/milliseconds (or 'now').
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": "time_unix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datetime | No | now | |
| timezone | No | UTC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||