there is a meditation technique that supposedly was given to v. moggalana by buddha wrote here like this:
“If you do not abandon your drowsiness by doing that, Moggallāna, then you should pay attention to the perception of light – the night as the day, the day as the night. In this way you should develop an open mind, a mind of unveiled radiance. By doing this it is possible that you will abandon your drowsiness.
but then another script is saying it's delusion:
“There are some contemplatives & brahmans, brahman, who have the perception of ‘day’ when it is night, and of ‘night’ when it is day. This, I tell you, is their being in a dwelling of delusion. As for me, I have the perception of ‘day’ when it is day, and of ‘night’ when it is night. If anyone, when speaking rightly, were to say, ‘A being not subject to delusion has appeared in the world for the benefit & happiness of many, out of sympathy for the world, for the welfare, benefit, & happiness of human & divine beings,’ he would rightly be speaking of me.
which one is correct? both? or perhaps it depends on context? what is the context?
a related post: How to "attend to the perception of light"?