It is not good to drink coffee at night. You may get sleeping disturbance during the night all night until the next morning. It is recommended not to drink coffee in the evening, but in the morning is ok.
What I’ve just experienced today is exactly what I’ve written. At about 8pm, I made a cup of coffee. I went to sleep at 1:30am. But I could not sleep. I had been in bed for about nearly 2 hours and then I got up turning the computer on again.
Now 5am, I write this blog.
I’ve tried to do relaxation but I failed. I yawned for about 5 times, but I failed to sleep.
The day before, I slept in the morning after fajar prayer until about 11am. I slept for about 8 hours.