Skip to content

$timeZone

$timeZone will change the timezone of any time function in the used command.

Usage

$timeZone[timezone]

Parameters

FieldTypeDescriptionRequired
timezonestringTimezone/Locale formatting.false

You can find all timezones here.

Example(s)

You can change the timezone using $timezone like the following:

1
client.command({
2
name: "time",
3
code: `
4
$hour:$minute:$second
5
$timeZone[America/New_York]
6
` // returns current time of New York
7
});