How do you know it's contractions?

I've been having menstrual like cramping coming like every 20 min or so are those contractions or just stretching?