get_hours_of_operation
Retrieve weekly hours of operation for a DevHub location, including time ranges for each day. Specify a location ID to return open and closed schedules, with support for breaks like lunch hours.
Instructions
Get the hours of operation for a DevHub location
Returns a list of items representing days of the week
Except for the special case formatting, this object is a list of 7 items which represent each day.
Each day can can have one-four time ranges. For example, two time ranges denotes a "lunch-break". No time ranges denotes closed.
Examples:
9am-5pm [["09:00:00", "17:00:00"]]
9am-12pm and 1pm-5pm [["09:00:00", "12:00:00"], ["13:00:00", "17:00:00"]]
Closed - an empty list []
Args:
location_id: DevHub Location ID
hours_type: Defaults to 'primary' unless the user specifies a different type
Input Schema
Name | Required | Description | Default |
---|---|---|---|
hours_type | No | primary | |
location_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"hours_type": {
"default": "primary",
"title": "Hours Type",
"type": "string"
},
"location_id": {
"title": "Location Id",
"type": "integer"
}
},
"required": [
"location_id"
],
"title": "get_hours_of_operationArguments",
"type": "object"
}