Return the last day of the month m for the year y.
See also: weekday, datenum, datevec, is_leap_year, calendar.
The following code
## Find leap years in the 20th century y = 1900:1999; e = eomday (y, repmat (2, [1, 100])); y(find (e == 29))
Produces the following output
ans = 1904 1908 1912 1916 1920 1924 1928 1932 1936 1940 1944 1948 1952 1956 1960 1964 1968 1972 1976 1980 1984 1988 1992 1996
Package: octave