Command Reference : Function Reference : Function Reference: Y
  
 
@year
 
Year of observation.
Syntax: @year
Return: series
Returns the year associated with each observation in the workfile.
If the workfile is undated, observations will be set to -1.
Examples
series dt = @year
saves the year into the series DT.
The command
workfile d7 2010 2022
smpl if @year < 2022
creates a seven day workfile and sets the sample include years prior to 2022.
Cross-references
See also @day, @hour, @hourf, @minute, @month, @seas, @second, and @weekday.