> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: TimeRange<Name>

> Positive half-open support; examination is a separate assertion.

[clocks](https://docs.bijection.com/api/modules/clocks).TimeRange

Positive half-open support; examination is a separate assertion.

## Type parameters

| Name | Type |
| :- | :- |
| `Name` | extends `string` = `string` |

## Constructors

### constructor

• **new TimeRange**\<`Name`>(`clock`, `from`, `to`)

#### Type parameters

| Name | Type |
| :- | :- |
| `Name` | extends `string` = `string` |

#### Parameters

| Name | Type |
| :- | :- |
| `clock` | [`Clock`](https://docs.bijection.com/api/classes/clocks.Clock)\<`Name`> |
| `from` | [`Exact`](https://docs.bijection.com/api/modules/clocks#exact) |
| `to` | [`Exact`](https://docs.bijection.com/api/modules/clocks#exact) |

## Properties

### from

• `Readonly` **from**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### to

• `Readonly` **to**: `Readonly`\<\{ `numerator`: `bigint` ; `denominator`: `bigint`  }>

***

### clock

• `Readonly` **clock**: [`Clock`](https://docs.bijection.com/api/classes/clocks.Clock)\<`Name`>

## Methods

### wire

▸ **wire**(): `Object`

#### Returns

`Object`

| Name | Type |
| :- | :- |
| `clock` | \{ `identity`: `Name` ; `ticks_per_second`: [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio)  } |
| `clock.identity` | `Name` |
| `clock.ticks_per_second` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `from` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |
| `to` | [`WireRatio`](https://docs.bijection.com/api/modules/clocks#wireratio) |

***

### fromWire

▸ `Static` **fromWire**(`value`): [`TimeRange`](https://docs.bijection.com/api/classes/clocks.TimeRange)

#### Parameters

| Name | Type |
| :- | :- |
| `value` | `unknown` |

#### Returns

[`TimeRange`](https://docs.bijection.com/api/classes/clocks.TimeRange)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.