What someone says, "I was in labour for 27 hours!" what does that really mean?

From the time my contractions began to the time I gave birth, 30 hours had passed. But, from the time I was admitted to the hospital to the time I gave birth, only 12 hours had passed.

When does one measure the start of labour?