Is it possible to change the time of day programmatically?

I’ve looked at the Day Sequence Device but it doesn’t contain any event listeners, or any way to change the time of day.

I want to change to night time after a specific period of time has passed, and back to daytime after another period has passed.

Is this possible?