util_datetime
Retrieves the current date and time in UTC, local time, or a specified IANA/Windows time zone to resolve deadlines, weekdays, and convert local times to UTC timestamps.
Instructions
Gets the current date and time from this computer's clock. Without timeZoneId it returns two lines: UTC, and the local time with its zone id and offset (ISO 8601). With timeZoneId it returns one line: that zone's id and its time with offset; an unknown id is an error that names the expected form. Reads only. Use it whenever an answer depends on today's date, a weekday, a deadline or the owner's local time, instead of guessing; and to turn a local time into the UTC timestamp code_changes_since expects. waymark_ping only gives the server's UTC time.
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": "util_datetime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeZoneId | No | Optional time zone id. IANA ids such as 'Europe/London' or 'Asia/Kolkata' work on every system; Windows ids such as 'India Standard Time' work too. Leave empty for UTC plus this computer's local time. |