Get Current Time
get_timeReturns the current time (or an offset from it) in both ISO 8601 format and unix epoch seconds.
Purpose: Get the current real time in UTC, optionally offset by a number of seconds, for any time-based calculations.
What this tool returns: { success: true, iso8601: "...", timestamp: ... } with the time in ISO 8601 format and as a unix epoch integer.
Use offset_seconds to get a future or past time relative to now (e.g. 7200 for 2 hours from now, -3600 for 1 hour ago).
Use timezone to get the ISO 8601 time in a specific timezone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | Timezone name to use for the time calculation. Use IANA timezone names (e.g. 'Asia/Singapore'). If not provided, UTC will be used. | |
| offset_seconds | No | Number of seconds to offset from current time. Positive for future, negative for past. Defaults to 0, the current time. |