calling it a night means: A friend might say it to you to let them know you’re going to bed. (in Community Dictionary, added by Valeriano Sánchez)