BOSTON — Boston Mayor Thomas Menino has left a hospital just in time for Christmas.

The longest serving mayor in the city’s history was released Sunday from Spaulding Rehabilitation Hospital and told reporters from inside a sport utility vehicle that it’s great to be out for Christmas.

He joked that city government has been running well, even without him.

He spent about six weeks at Brigham and Women’s Hospital. He was admitted for treatment of a respiratory infection that developed during a vacation in Italy.

While at the hospital he suffered complications including a compression fracture in a vertebra in his spine. Menino also was diagnosed with Type 2 diabetes.

A spokesman said the mayor has not made a decision about his work schedule.