San Francisco has only a handful of 24-hour restaurants.