calculate_duration
Determine the duration between two timestamps with precision. Specify start and end times, optional unit, and timezone for accurate results. Ideal for time-based calculations and scheduling.
Instructions
Calculate duration between two times
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end_time | Yes | End time | |
start_time | Yes | Start time | |
timezone | No | Timezone for parsing (default: system timezone) | |
unit | No | Output unit (default: "auto") |
Input Schema (JSON Schema)
{
"properties": {
"end_time": {
"description": "End time",
"type": "string"
},
"start_time": {
"description": "Start time",
"type": "string"
},
"timezone": {
"description": "Timezone for parsing (default: system timezone)",
"type": "string"
},
"unit": {
"description": "Output unit (default: \"auto\")",
"type": "string"
}
},
"required": [
"start_time",
"end_time"
],
"type": "object"
}