ぎわではありませんでした
same giwadewārimasendeshita

Noun
Desu Copula

The polite, past negative form of 覚め際

1. It was not the time to wake up.; It wasn't the moment to awaken.

Past/Perfective
Negative
Polite
Formal Register