I hope some of this helps you. In a script, you could say:
IF %TIME >19 THEN
BEGIN
IF %TIME < 25 THEN
BEGIN
$PAGETEXT := $PAGETEXT + "This text is added to the page, if time is between 20 and 24."
END
END
Note, when mentioning a variable in a script, you simply put one % in front of it, to say it is a variable. Also, if you want to see if 'A' equals 'B', you use the = sign. But if you want to make 'A' equal 'B' you must type := instead, not just =.
If you type the page text as you want it, as you normally would in the page editor's text box, you can then use a script saying $PAGETEXT := $PAGETEXT + "more text" to add the words "more text" onto the END of the page. If you want the "more text" to be at the start, or in the middle of the page, then you need to script all of the words of the page's text.
So, you would need to have a script that read something like:
$PAGETEXT := "type all your beginning text here. Use <br> to start new paragraphs, and html code <b> </b> etc, for formatting your text."
IF %TIME >19 THEN
BEGIN
IF %TIME < 25 THEN
BEGIN
$PAGETEXT := $PAGETEXT + "This text is added to the page, if time is between 20 and 24."
END
END
IF %TIME >4 THEN
BEGIN
IF %TIME < 21 THEN
BEGIN
$PAGETEXT := $PAGETEXT + "This text is shown instead, if time is between 5 and 20."
END
END
$PAGETEXT := $PAGETEXT + "Type all the text that comes after your 'variable text' here."