请问我这样写怎么有错误
<% if hour(Time())>5 and hour(Time())<9 Then greeting ="早上好"
end if
if hour(Time())>9 and hour(Time())<12 then greeting="上午好"
end if
if hour(Time())>12 and hour(Time())<19 then greeting="下午好"
end if
if hour(Time())>19 or hour(Time())<5 then greeting="晚上好"
end if %>
<%=greeting%>