Skip to content

$year

$year will return the current year in CST.

Usage

$year

Example(s)

This will returns the current year:

1
client.command({
2
name: "year",
3
code: `
4
$year
5
`
6
});

You can change the timezone using $timezone:

1
client.command({
2
name: "year",
3
code: `
4
$year
5
$timezone[America/New_York]
6
` // returns current year in New York
7
});