Staphylococcal infection of a prosthetic joint in the months after implantation is usually acquired during surgery, whereas infections occurring more than 12 months after surgery are likely due to hematogenous spread.