# second

Industry: Core

```ts
const second: RegExp = /^[0-5][0-9]$/;
```

RegExp matching a second of `00`–`59`.

## Examples

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

```ts
second.test("00") // true
second.test("30") // true
second.test("59") // true
second.test("60") // false (a leap second; GMT rejects it, see `leapSecond`)
```

## Source

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