Skip to content
On this page

Athena.systems.defaults.time

Functions

disable

Usage

Athena.systems.defaults.time.disable(): void

Disable the default time synchronization on server-side.

Example

ts
Athena.systems.defaults.time.disable();

Returns

void

Defined in

server/systems/defaults/time.ts:85


getHour

Usage

Athena.systems.defaults.time.getHour(): number

Get the current hour.

Returns

number

Defined in

server/systems/defaults/time.ts:102


getMinute

Usage

Athena.systems.defaults.time.getMinute(): number

Get the current minute.

Returns

number

Defined in

server/systems/defaults/time.ts:112


updatePlayer

Usage

Athena.systems.defaults.time.updatePlayer(player): void

Updates the player time to match the current server time.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity

Returns

void

Defined in

server/systems/defaults/time.ts:60

Created by Stuyk | Est. 2020