static Bool woodyEvalTimeCondition(S exp) { if (jmatch("earlymorning()", exp)) ret hourBetween(4, 8); if (jmatch("morning()", exp)) ret hourBetween(8, 11); if (jmatch("midday()", exp)) ret hourBetween(11, 14); if (jmatch("afternoon()", exp)) ret hourBetween(14, 17); if (jmatch("teatime()", exp)) ret hourBetween(17, 18); if (jmatch("evening()", exp)) ret hourBetween(18, 21); if (jmatch("night()", exp)) ret hourBetween(21, 23); if (jmatch("midnight()", exp)) ret hourBetween(23, 1); if (jmatch("latenight()", exp)) ret hourBetween(1, 4); null; }