[**SixL server API**](../../README.md)

***

[SixL server API](../../README.md) / [world](../README.md) / WorldTimeMp

# Interface: WorldTimeMp

The in-game clock of `mp.world.time`.

## Properties

### hour

> **hour**: `number`

The hour, 0..23.

#### Remarks

Setting it sends the whole time to the clients and to players who join later; each client sets the
game's clock once per change.

#### Example

```ts
mp.world.time.hour = 18;
```

***

### minute

> **minute**: `number`

The minute, 0..59.

#### Remarks

Setting it sends the whole time, as for `hour`.

#### Example

```ts
mp.world.time.minute = 30;
```

***

### second

> **second**: `number`

The second, 0..59.

#### Remarks

Setting it sends the whole time, as for `hour`.

#### Example

```ts
mp.world.time.second = 0;
```

## Methods

### set()

> **set**(`hour`, `minute?`, `second?`): `void`

Sets the time in one call (one message to the clients).

#### Parameters

##### hour

`number`

0..23.

##### minute?

`number`

0..59 (default 0).

##### second?

`number`

0..59 (default 0).

#### Returns

`void`

#### Example

```ts
mp.world.time.set(12, 0, 0);
```
