Cramps in the latter part of the night are nocturnal cramps. Most of these cramps occur at rest or during sleep and most of the sufferers have overworked during the day or are in a state of exhaustion, so if you go to the hospital, be careful to explain to the doctor what you have been working on or what state you are in. If you are taking certain medications, you should inform your doctor about them truthfully and fully.