Inspector John Deasy told Cork District Court yesterday Garda Jamie O’Riordan was on patrol at Old Youghal Rd in the Mayfield area of Cork City when he saw David Malone with a knife and hammer.
Garda O’Riordan approached Malone and recovered the weapons.
Insp Deasy said the incident occurred at 2.25am on Nov 6, 2012.
Malone yesterday pleaded guilty to a charge of possession of weapons.
Judge Olann Kelleher said there were enough problems in the city without having a man carrying a knife and hammer in the early hours.
Insp Deasy said Malone had nine previous convictions, including counts relating to theft and public order.
Eddie Burke, solicitor, said Malone came from a good background and there was no reason for him behaving this way.
“I don’t know what is going on with this young man,” said Mr Burke, requesting a probation report.
Judge Kelleher put sentencing back for two months for the preparation of such a report.
The judge warned Malone, from 73 Ashmount, Silversprings, Cork: “You must co-operate with the probation service. If you don’t, you are going to end up in prison.”