Calculates the number of days elapsed since 1 January 1970 until 1 January of the given year.
The year to compute the number of days from.
The number of days elapsed.
writeln(dayFromYear(1970)); // writes '0' writeln(dayFromYear(1971)); // writes '365' writeln(dayFromYear(1972)); // writes '730'
See Implementation
Calculates the number of days elapsed since 1 January 1970 until 1 January of the given year.