current_time
Retrieve the current date and time in a specified format and timezone. Designed to enable accurate time awareness for applications and large language models.
Instructions
Get the current date and time.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | Yes | The format of the time, default is empty string | YYYY-MM-DD HH:mm:ss |
timezone | No | The timezone of the time, IANA timezone name, e.g. Asia/Shanghai |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"default": "YYYY-MM-DD HH:mm:ss",
"description": "The format of the time, default is empty string",
"enum": [
"h:mm A",
"h:mm:ss A",
"YYYY-MM-DD HH:mm:ss",
"YYYY-MM-DD",
"YYYY-MM",
"MM/DD/YYYY",
"MM/DD/YY",
"YYYY/MM/DD",
"YYYY/MM"
],
"type": "string"
},
"timezone": {
"description": "The timezone of the time, IANA timezone name, e.g. Asia/Shanghai",
"type": "string"
}
},
"required": [
"format"
],
"type": "object"
}