note: The following solution is based on the information you supplied to @Chapel.
You can use the Javascript <Date>.getHours() function to obtain the number of hours that have past since midnight for a particular Date object. You can then use an <<if>> macro to compare that number against 23.
The following example creates a Date object, displays the current time of that object, then uses a <<link>> macro to allow the updating of the objects hours property. The link also use a <<replace>> macro the update the current time being shown, and uses the above mentioned check to cause the forwarding to the other passage via a <<goto>> macro.
<<set $now to new Date(2017, 11, 1, 9, 0, 0)>>
time: @@#time;<<print $now.toTimeString().split(' ')[0]>>@@
<<link "add hour to current time">>
<<set $now to setup.changeDate($now, 'hours', 2)>>
/% Update the displayed time. %/
<<replace "#time">><<print $now.toTimeString().split(' ')[0]>><</replace>>
/% Check if 23:00, which is the 23rd hour. %/
<<if $now.getHours() is 23>>
<<goto "Other Passage">>
<</if>>
<</link>>
... it should be noted that there are other places that the same check could be used to achieve the same result.