Skip to content
Date & Time year

$year[]

The $year function returns the current year.

Syntax

$year

Note: This function takes no parameters (passing one is an error).

Return Value

The current year as a number (for example 2026).

Examples

Simple year

We are in the year $year.

Age calculation

Were you born in 2000? You are $sub[$year;2000] years old!
$footer[© $year - MyBot]

Notes

  • The year is read in UTC unless a timezone was set earlier with $time[timezone].
  • Useful for dynamic copyright footers.

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.