Skip to content

$second

$second will return the current second in UTC.

Usage

$second

Example(s)

This will returns the current second:

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

You can change the timezone using $timezone:

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