In this March 27, 2018 file photo, former President Jimmy Carter speaks during a funeral service for former and former Georgia Gov. Zell Miller, in Atlanta. Credit: John Bazemore | AP

Jimmy Carter – the 39th president of the United States – has recently celebrated multiple record-breaking milestones: The 40th anniversary of his inauguration was in 2017, and in October, he joined George H.W. Bush as the only other president to reach 94.

On Friday, at the age of 94 years and 172 days, Carter reached a new milestone, becoming the longest-living president in U.S. history.

He did so despite thinking he was on the verge of death just a few years earlier, after doctors discovered that cancer had spread to his brain.

True to form for the low-key former chief executive, however, “there are no special celebrations planned,” his spokeswoman said.

Born on Oct. 1, 1924, in Plains, Georgia, the typically cheery and humble former Navy lieutenant has had a life of service. Before taking office as president, he served as a state senator in Georgia and as governor.

His presidency – remembered for the Camp David accords, the Iran hostage crisis and creation of the Departments of Energy and Education – flamed out during the election of 1980, when Ronald Reagan defeated him.

After leaving the White House in 1981, Carter, then 56, and his wife, Rosalynn, returned to their hometown in southern Georgia. Yet another distinction: Carter has been an ex-president longer than anybody in American history.

He remains engaged in the causes and activities that matter most, according to the Carter Center’s director of communications, Deanna Congileo: He participates in Carter Center programs in global peace and health and annual Habitat for Humanity builds, and he received the Nobel Peace Prize in 2002, for work during and after his time in office. Carter also continues to teach Sunday school lessons and courses at Emory University.

“Both President and Mrs. Carter are determined to use their influence for as long as they can to make the world a better place. Their tireless resolve and heart have helped to improve life for millions of the world’s poorest people,” Congileo wrote in an email to The Post.

In 2015, Carter announced doctors had discovered a form of melanoma that spread to his brain.

“I just thought I had a few weeks left, but I was surprisingly at ease,” Carter said at a news conference that August. “I’ve had an exciting and adventurous and gratifying existence.”

He received his first radiation treatment at 90 years old. Four months later, he was – remarkably – cancer free.

Bush, the 41st president, died on Nov. 30. Carter attended the funeral service in Washington, along with President Trump and former presidents Barack Obama and Bill Clinton and, of course, Bush’s son, George W.

Carter says he takes pride in having “always told the truth.” He also says he is proud that former secretary of state Hillary Clinton and Sen. Bernie Sanders, I-Vt., “comported themselves with dignity, talked about issues that matter and presented a vision for our nation,” during the 2016 presidential election. Still, thinking back on more than 40 years, Carter told The Post in August that he “regrets not doing more to unify the Democratic Party.”

His 2016 message to the younger generation of voters was: “Stay engaged. Stay involved. And be sure to vote.”