In case I haven't understood something wrong,
the documentation for tm_yday() seems to be wrong (gnuplot 4.4.0 to 5.4.0)
V4.4.0
The tm_ydayfunction interprets its argument as a time,in seconds from 1 Jan 2000.It returns the day of the year (an integer in the range 1--366)as a real.
V5.4.0
The tm_yday(x) function interprets its argument as a time, in seconds from 1 Jan 1970 . It returns the day of the year (an integer in the range 1--366) as a real.
However,
print tm_yday(strptime("%d.%m.%Y","31.12.2020"))
print tm_yday(strptime("%d.%m.%Y","01.01.2021"))
will lead to:
365.0
0.0
So, it should read ... in the range 0-365...
good catch