# areTimesEqual

Industry: Core

## Signature

```ts
areTimesEqual(value1: string, value2: string): boolean
```

Return true if two PlainTime ISO strings represent the same time components.

- Compares all time components: hour, minute, second, millisecond, microsecond, nanosecond.
- Returns false if either input is invalid.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value1` | `string` | first ISO PlainTime string |
| `value2` | `string` | second ISO PlainTime string |

## Returns

boolean indicating whether both times are equal component-wise

## Examples

```ts
import { areTimesEqual } from "@northguild/gmt/plain/compare";

areTimesEqual("12:34:56", "12:34:56") // true
```

## Source

[plain/compare/areTimesEqual.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/plain/compare/areTimesEqual.ts)
