>>11102677Sleeping is optimised when luminosity is low for us, hence laborious human activity being done mostly during the day.
There's also a question of when you last slept and last ate. You have an internal clock called the circadian rythm, which determines sleepiness based on how much clutter you have in your glymphatic system, which is itself a function of how long you've been conscious and how strongly UV radiation has interacted with your eyes and skin (because we produce vitamin D in the Sun, the body knows you're receiving UV even if your eyes are closed or blind).
Theoretically you could sleep during days and working nights as long as you don't mess with your sleeping and eating schedule, sleep in the most possible darkness and expose yourself to bright blue lights (eg. computer screens, neon lamps) during your active night hours to trick your brain into thinking its daytime. If everything is regulated, your quality of sleep shouldn't be different from a person with a normal routine.