Lime can be applied anytime, but the ideal time is in the fall. The freezing and thawing of the soil over the winter will help to incorporate the lime into the ground. It is not recommended to apply lime on snow or frost-covered turf.
Here is our website on liming a lawn. https://extension.umd.edu/hgic/topics/liming-lawn