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

# HSMDateTime

> Protobuf class HSMDateTime generated from WAProto.

Defined in: [WAProto/index.d.ts:6477](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6477)

## Implements

* [`IHSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime)

## Constructors

### new HSMDateTime()

> **new HSMDateTime**(`p`?): [`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

Defined in: [WAProto/index.d.ts:6478](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6478)

#### Parameters

##### p?

[`IHSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime)

#### Returns

[`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

## Properties

### component?

> `optional` **component**: `null` | [`IHSMDateTimeComponent`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeComponent)

Defined in: [WAProto/index.d.ts:6479](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6479)

#### Implementation of

[`IHSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime).[`component`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime#component)

***

### datetimeOneof?

> `optional` **datetimeOneof**: `"component"` | `"unixEpoch"`

Defined in: [WAProto/index.d.ts:6481](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6481)

***

### unixEpoch?

> `optional` **unixEpoch**: `null` | [`IHSMDateTimeUnixEpoch`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/HSMDateTime/interfaces/IHSMDateTimeUnixEpoch)

Defined in: [WAProto/index.d.ts:6480](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6480)

#### Implementation of

[`IHSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime).[`unixEpoch`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime#unixepoch)

## Methods

### create()

> `static` **create**(`properties`?): [`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

Defined in: [WAProto/index.d.ts:6482](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6482)

#### Parameters

##### properties?

[`IHSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime)

#### Returns

[`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

***

### decode()

> `static` **decode**(`r`, `l`?): [`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

Defined in: [WAProto/index.d.ts:6484](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6484)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:6483](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6483)

#### Parameters

##### m

[`IHSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/interfaces/IHSMDateTime)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

Defined in: [WAProto/index.d.ts:6485](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6485)

#### Parameters

##### d

#### Returns

[`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:6488](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6488)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:6487](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6487)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:6486](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6486)

#### Parameters

##### m

[`HSMDateTime`](/proto-reference/Message/HighlyStructuredMessage/HSMLocalizableParameter/classes/HSMDateTime)

##### o?

`IConversionOptions`

#### Returns

`object`
