The Hebrew calendar is a combination of solar and lunar measurements and this enables to set the timing of religious festivals as indicated :
And God said: "Let there be lights in the firmament of the heaven to divide the day from the night; and let them be for signs, and for seasons, and for days and years." (source: Genesis 1:14)