CALGARY, Alberta (AP) — Jaromir Jagr has signed with the Calgary Flames.

The 45-year-old Jagr agreed to a one-year deal Wednesday for his 24th NHL season — and first with a Canadian team.

"I already said in a Czech newspaper it's 99.9 percent that his will be my last season, so I want to get the experience to one day say I played for a Canadian team," Jagr said.

The five-time NHL scoring champion is second behind Wayne Gretzky in NHL history with 1,914 points (765 goals, 1,149 assists).

Jagr has played 1,711 NHL games with Pittsburgh, Washington, New York Rangers, Philadelphia, Dallas, Boston, New Jersey and Florida and is 57 games from passing Gordie Howe for the most NHL games played (1,767).

Flames assistant general manager Craig Conroy said "everyone was on board" with the signing.

"How do we make us competitive? We felt the best way to do this is to get the best player available, and Jaromir Jagr happened to be available," Conroy said.

Jagr started his career with Pittsburgh in the 1990-91 season and helped the Penguins win back-to-back Stanley Cups in 1991 and 1992. The Czech star won the Hart Trophy as the NHL's most valuable player in 1999.

Last season, he had 16 goals and 30 assists in 82 games with Florida. Ten Flames were not even born in 1991 when Jagr won the first of his Stanley Cup.

"Everyone compared to my age is a young guy," Jagr said. "Last 20 years I've played with young guys. But the last two years in Florida I played with (Jonathan) Huberdeau and (Aleksander) Barkov and combined their age is still younger than me. It was great for me and hopefully they can say the same thing."