Skip to content
Date & Time second

$second[]

The function $second[] returns the current second (from 0 to 59).

Syntax

$second

Note: This function does not take any parameters (passing one is an error).

Return Value

A number between 0 and 59 representing the current second, with no leading zero (for example 5, not 05).

Examples

Simple second

Current second: $second

Custom full time

It is precisely $hour:$minute and $second seconds.

Clock in an embed

$title[🕐 Clock]
$description[$hour:$minute:$second]
$footer[Updated at each execution]

Notes

  • The value is read in UTC unless a timezone was set earlier with $time[timezone].

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.