Skip to content

$hour

$hour will return the current hour in UTC.

Usage

$hour

Example(s)

This will returns the current hour:

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

You can change the timezone using $timezone:

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