Brandon Moss #37 of the Oakland Athletics steals second base ahead of a throw to Howie Kendrick #47 of the Los Angeles Angels of Anaheim during the second inning at O.co Coliseum on April 29, 2013 in Oakland, California. (credit: Jason O. Watson/Getty Images)

OAKLAND, Calif. (AP) — Two games in one.

Brandon Moss hit his second home run of the night with two outs in the bottom of the 19th inning to give the Oakland Athletics a 10-8 victory over the Los Angeles Angels of Anaheim early Tuesday in the longest major league game of the season.

The teams were on the field for 6 hours, 32 minutes in a marathon game that ended at 1:41 a.m. on the West Coast. It was the longest game ever played in Oakland by time and the longest in Angels history as well.

Oakland slugger Yoenis Cespedes singled off the left-center wall to drive in the tying run with two outs in the bottom of the ninth.

Los Angeles went ahead 8-7 in the 15th on a bases-loaded walk, but the A’s tied it in the bottom half on Adam Rosales’ two-out single after a costly error by Angels first baseman Albert Pujols.

Pujols homered twice earlier in the game and finished with four hits. Mark Trumbo also went deep for the Angels and added a two-run double.

All that baseball took a toll on both teams.

Angels center fielder Peter Bourjos was removed with a strained left hamstring and third baseman Luis Jimenez came out with a bruised left shin.

Oakland lost center fielder Coco Crisp to a strained left hamstring and outfielder Chris Young to a strained left quadriceps.

Brett Anderson was originally scheduled to start for the A’s but was scratched with a sore right ankle in favor of Dan Straily. Anderson entered to start the 13th and pitched 5 1-3 innings before hobbling off the field with an apparent foot injury.

Jerry Blevins, the last reliever in the Oakland bullpen, was given as much time as he needed to warm up. He retired Mike Trout and Pujols to end the top of the 18th inning.