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

# TimeFormatAction

> Protobuf class TimeFormatAction generated from WAProto.

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

## Implements

* [`ITimeFormatAction`](/proto-reference/SyncActionValue/interfaces/ITimeFormatAction)

## Constructors

### new TimeFormatAction()

> **new TimeFormatAction**(`p`?): [`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

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

#### Parameters

##### p?

[`ITimeFormatAction`](/proto-reference/SyncActionValue/interfaces/ITimeFormatAction)

#### Returns

[`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

## Properties

### isTwentyFourHourFormatEnabled?

> `optional` **isTwentyFourHourFormatEnabled**: `null` | `boolean`

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

#### Implementation of

[`ITimeFormatAction`](/proto-reference/SyncActionValue/interfaces/ITimeFormatAction).[`isTwentyFourHourFormatEnabled`](/proto-reference/SyncActionValue/interfaces/ITimeFormatAction#istwentyfourhourformatenabled)

## Methods

### create()

> `static` **create**(`properties`?): [`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

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

#### Parameters

##### properties?

[`ITimeFormatAction`](/proto-reference/SyncActionValue/interfaces/ITimeFormatAction)

#### Returns

[`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

***

### decode()

> `static` **decode**(`r`, `l`?): [`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

***

### encode()

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

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

#### Parameters

##### m

[`ITimeFormatAction`](/proto-reference/SyncActionValue/interfaces/ITimeFormatAction)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

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

#### Parameters

##### d

#### Returns

[`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`TimeFormatAction`](/proto-reference/SyncActionValue/classes/TimeFormatAction)

##### o?

`IConversionOptions`

#### Returns

`object`
