Learn English – What phrase can describe the final moments before a deadline

american-englishbritish-englishsentencetime

I got a call from a friend while 10 minutes were left of my birthday. I want to put it like that

The phone call from him ___________ was the icing on the cake.

How to express that only 10 minutes were left of that day? should the time thing be in the blank space?
Is the following sentence correct?

The phone call from him 10 minutes prior to end of the day was the icing on the cake.

Best Answer

Try:

The phone call from him at the eleventh hour was the icing on the cake.

Also, Kristina was magnanimous enough to let me use one from her post:

The phone call from him in the nick of time was the icing on the cake.

(Oxford)