Johnny Urias, 51, has been given until Dec. 14 to surrender to begin his sentence, which also includes four years probation and registration as a sex offender, said Lisa McCrary, ombudsman for the Santa Clara County District Attorney's Office.
The Santa Clara County Superior Court also required Urias to stay at least 300 yards from the elementary school where he used to work, McCrary said.
The court agreed to drop one of the two counts of possession of child pornography against the defendant, McCrary said.
Urias, a former teacher at the Will Rodgers Elementary School in San Jose, was arrested by Milpitas police at his San Jose home May 30, months after they received a report that he might have child pornography, according to the Milpitas Police Department.
His wife found the images on his computers and turned him in, according to Clarissa Hamilton, deputy district attorney with the Santa Clara County District Attorney's Office.
Milpitas police began an investigation, which included examining the hard drives of computers Urias had access to, in August 2011 when Urias used to live in Milpitas.
Investigators did not extract enough evidence from the hard drives to make an arrest until May, police said.
Urias had been placed on paid leave from the school in September 2011, police said.