in reply to A month behind the times...
localtime is behaving correctly. The values of month are 0-11 with January being 0 and 11 being December. As you noted, year is the number of years since 1900. Also, day of week has values 0-6 with 0 for Sunday and 6 for Saturday.