After winning two of the past three World Series, Brian Sabean and Bruce Bochy will have plenty of time to try for more.

The Giants announced Thursday that their general manager and manager earned contract extensions through 2016.

“(Sabean) is a brilliant strategist who surrounds himself with some of the brightest minds in baseball – with Bruce Bochy topping that list,” team CEO Larry Baer said in statement.

Sabean, 56, has a .537 winning percentage as he begins his 17th year as the Giants GM. No general manager in team history comes close to matching the length of his tenure, with Spec Richardson (seven seasons, 1975-81) owning the second-longest reign.

Bochy, 57, embarks on his seventh season as Giants manager. He is 503-469 (.517) during the regular season and 22-9 (.710) in the postseason, including an 8-1 mark in World Series games.

“In my opinion Bruce is the best manager in the game today and is on his way to a Hall of Fame career,” Sabean said in a statement.

Financial terms of the extensions were not disclosed.