I think for me was 22 hours, I remember when I had my first child I was up at 6am went into labor around 7am had the baby at 11:30pm and could not get to sleep till 4am the next day.
The longest I have stayed up once years ago was 28 hours. It was a sport day and also after sport day went to Deaf Club and then to friend's place to chat with friends.