Scratch for Java

Clock::getYear()

Returns the current year, for example 2026.

Syntax

Java

.getYear()

Scratch

(current [year v])

Return

int

getYear()

Create Shareable URL

Select Sections