"The time has come", O'Neill said.
His lawyer Joseph Green, had asked for house arrest saying Cosby - who is legally blind - was too old and helpless to do time and there was "no reasonable prospect" of his reoffending. He faces up to 30 years in prison, though state guidelines suggest a sentence of one to four years. But as CNN notes, the judge didn't have to stick to the guidelines. As a "predator", Cosby will have to register as a sex offender, notify the community of his whereabouts, and attend counseling for life.
"Bill Cosby took my lovely, healthy young spirit and crushed it", Constand wrote.
Constand writes in a victim-impact statement released Tuesday that Cosby's attack on her was just "the tip of the iceberg" for the suffering that followed.
When prosecutors told Cosby in court he would not have to inform Constand of his movements himself but that a proxy would do so, he replied: "Good!"
Former model Janice Dickinson, who was among the 60 or so women who have come forward to accuse Cosby of drugging and violating them over the past five decades, looked at Cosby and said: "Here's the last laugh pal".
She testified that she took three blue pills Cosby offered her during a visit to his home outside Philadelphia in early 2004 because she trusted Cosby and believed they were some kind of an herbal relaxant.
The judge is expected to sentence Cosby later Tuesday.
"He seemingly thinks that he hasn't done anything wrong", District Attorney Kevin Steele said in court.
But O'Neill thought otherwise.
He then said: "He's had no sexual conduct in approximately 15 years".
As the Commonwealth of Pennsylvania pointed out in their sentencing memorandum asking for the maximum prison time, "These assaults spanned decades and demonstrate an ingrained pattern of criminality". Cosby was booked into Montgomery County Correctional Facility and transferred to Pennsylvania's State Correctional Institute at Phoenix on Tuesday evening. Cosby could also be allowed to remain out of prison until his legal appeals are resolved.
The comedian's first trial in 2017 ended in a hung jury.
Experts said the trial was a game-changer.
"The behaviors are beyond their controls, so they are urged to act on it".
Psychologist Kristen Dudley testified on Monday that Cosby showed signs of a mental disorder and was likely to reoffend. A psychologist for the defense countered that Cosby's age made reoffending unlikely.
Cosby's attorneys have already filed an appeal.
Judge O'Neill also chose to designate Cosby a "sexually violent predator" under Pennsylvania law.
After Cosby was sentenced as result of his conviction on charges of drugging and sexually assaulting former Temple University employee Andrea Constand, at least one woman in the courtroom raised her fist in the air and said "Yes!" reports The Associated Press.
Cosby's wife, Camille, was not present for the sentencing and Bill Cosby did not testify.
Constand's mother, Gianna Constand, also read a letter to the court. "The victims cannot be unraped, all we can do is hold the perpetrators responsible".
Cosby declined the opportunity to speak before the sentence came down, and afterward he sat and chatted with his spokesman and a lawyer, seemingly in good spirits.
At issue was a "nasty" personal conflict involving a prior district attorney, Bruce Castor, Cosby's team argued. I got her skin and it's just above the hand and it's just above where you can go under the trousers.