How long can a train legally block a crossing?

Transport Canada basically tells us the same thing: “Railway companies cannot conduct regular railway operations or leave railway equipment …