# hour

Industry: Core

```ts
const hour: RegExp = /^(0[0-9]|1[0-9]|2[0-3])$/;
```

RegExp matching an ISO 8601 hour in extended format: `00`–`23`.

## Examples

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

```ts
hour.test("00") // true
hour.test("12") // true
hour.test("23") // true
hour.test("24") // false (out of range)
hour.test("9") // false (not zero-padded)
```

## Source

[regex/time.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/regex/time.ts)
