# isBeforeTime

Industry: Core

## Signature

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

Return true when `value1` is strictly before `value2` for PlainTime values.

- Uses Temporal.PlainTime.compare to compare times.
- Returns false if either input is invalid.

## Parameters

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

## Returns

boolean indicating whether value1 &lt; value2

## Examples

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

isBeforeTime("12:34:56", "13:34:56") // true
```

## Source

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