View Single Post
Old 12-30-2023, 08:07 PM   #2
gmo
Hall Of Famer
 
Join Date: May 2002
Location: Longmont, CO
Posts: 3,452
Below will be my effort. Feel free to use as a starting point for other versions like with tweaks or as more gametimes are set.

I took info from https://www.baseball-reference.com/l...schedule.shtml. That source was easier to parse, though there are a lot of missing gametimes there, more than like ESPN shows. Some items worth noting are described further below.

First key is that team numbers correspond to what is built into the schedule. This mapping should be correct, but if for some reason your league does not have this, the schedules using this mapping will not be correct.

Code:
Baltimore Orioles     =  1
Boston Red Sox        =  2
New York Yankees      =  3
Tampa Bay Rays        =  4
Toronto Blue Jays     =  5
Chicago White Sox     =  6
Cleveland Guardians   =  7
Detroit Tigers        =  8
Kansas City Royals    =  9
Minnesota Twins       = 10
Houston Astros        = 11
Los Angeles Angels    = 12
Oakland Athletics     = 13
Seattle Mariners      = 14
Texas Rangers         = 15
Atlanta Braves        = 16
Miami Marlins         = 17
New York Mets         = 18
Philadelphia Phillies = 19
Washington Nationals  = 20
Chicago Cubs          = 21
Cincinnati Reds       = 22
Milwaukee Brewers     = 23
Pittsburgh Pirates    = 24
St Louis Cardinals    = 25
Arizona Diamondbacks  = 26
Colorado Rockies      = 27
Los Angeles Dodgers   = 28
San Diego Padres      = 29
San Francisco Giants  = 30
For the missing game times, which are mostly all of several teams home games, I took 7:05pm local for weekday games and 1:05pm local for Sat/Sun games. That makes a number of games on the last day of the season not fit the pattern of having all games start about the same time.

The Seoul Series (https://www.mlb.com/news/mlb-world-tour-2024) has the Padres and Dodgers playing regular season games a full week before anyone else, so that makes things a little unusual.

There is one schedule doubleheader, Rangers @ Athletics on Wed May 8. With no gametimes for Oakland in my source, I took the default time (noted above) for the first game and set the second to start 3 hours later.
__________________
Making Baseball Schedules
gmo is offline   Reply With Quote