Is this two different outputs? The second one is easy
STRGE $Now.Hour 7
ANDLT $Now.Hour 19
OUT C42
The first one is easier if you think about when you want it OFF, between 6 and 20, then invert using the NOT contact.
STRGE $Now.Hour 6
ANDLT $Now.Hour 20
ANDNOT // inverts power flow; this is the triangle contact with a small circle on the end
OUT C43