currentDateTime
Retrieve the current date and time for a specified timezone or default to UTC. Input a valid IANA timezone name like 'America/New_York' to get the accurate local time.
Instructions
Get Current Date and time for timezone. if timezone is not passed default to UTC
Input Schema
Name | Required | Description | Default |
---|---|---|---|
timezone | No | The timezone should be a valid IANA timezone name like "America/New_York" or "Asia/Kolkata" |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"timezone": {
"anyOf": [
{
"anyOf": [
{
"not": {}
},
{
"type": "string"
}
]
},
{
"type": "null"
}
],
"description": "The timezone should be a valid IANA timezone name like \"America/New_York\" or \"Asia/Kolkata\""
}
},
"type": "object"
}