note: The following solution is based on the information you supplied to @Chapel.
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(' ')>>@@
<<link "add hour to current time">>
<<set $now to setup.changeDate($now, 'hours', 2)>>
/% Update the displayed time. %/
<<replace "#time">><<print $now.toTimeString().split(' ')>><</replace>>
/% Check if 23:00, which is the 23rd hour. %/
<<if $now.getHours() is 23>>
<<goto "Other Passage">>
... it should be noted that there are other places that the same check could be used to achieve the same result.