# LocalWindow

Industry: Core, Workforce

A daily window of local wall time, half-open: open from `from` up to (not including) `to`.

```ts
import type { LocalWindow } from "@northguild/gmt";
```

## Members

| Member | Type | Description |
| --- | --- | --- |
| `from` | `string` | The wall time the window opens, as an ISO PlainTime string (`"09:00"`, `"17:30:00"`) that `isValidTime` accepts. |
| `to` | `string` | The wall time the window closes, as an ISO PlainTime string; the window does not include it. A value after `from` keeps the window inside one local date. A value at or before `from` wraps past midnight into the next local date: `{ from: "23:00", to: "06:00" }` is a night, and `{ from: "00:00", to: "00:00" }` is a whole day. |

## Definition

```ts
type LocalWindow = {
  /**
   * The wall time the window opens, as an ISO PlainTime string (`"09:00"`, `"17:30:00"`) that
   * `isValidTime` accepts.
   */
  from: string;
  /**
   * The wall time the window closes, as an ISO PlainTime string; the window does not include it.
   * A value after `from` keeps the window inside one local date. A value at or before `from`
   * wraps past midnight into the next local date: `{ from: "23:00", to: "06:00" }` is a night,
   * and `{ from: "00:00", to: "00:00" }` is a whole day.
   */
  to: string;
};
```

## Used by

- [`addOperatingTime`](/gmt/reference/calendar/hours/addOperatingTime/)
- [`dutyViolations`](/gmt/reference/workforce/calculate/dutyViolations/)
- [`evaluateDutyLog`](/gmt/reference/workforce/calculate/evaluateDutyLog/)
- [`isOpenAt`](/gmt/reference/calendar/hours/isOpenAt/)
- [`isValidOperatingSchedule`](/gmt/reference/calendar/validate/isValidOperatingSchedule/)
- [`nextCloseAt`](/gmt/reference/calendar/hours/nextCloseAt/)
- [`nextOpenAt`](/gmt/reference/calendar/hours/nextOpenAt/)
- [`operatingIntervals`](/gmt/reference/calendar/hours/operatingIntervals/)
- [`operatingTimeBetween`](/gmt/reference/calendar/hours/operatingTimeBetween/)
- [`recurringWindows`](/gmt/reference/calendar/hours/recurringWindows/)

## Source

[types/operating-schedule.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/operating-schedule.ts)
