That definitely happens with me any time that I'm not on a set schedule. I tend to go to sleep after the evening meal, wake up for a couple of hours in the middle of the night (which is productive coding time...), then go back to sleep until morning.