我想当时间不同的时候浏览不同的网站的操作,但不会取得时间呀
我想这样写得不得
dim time
time=now()
if time=7:25-9:45 then
call a
elseif time=10:04-13:23 then
call b
else
call c
end if
这time=7:25-9:45 部分我不会写呀? 帮一下忙啦!
...全文
215打赏收藏
时间函数的问题(2)
我想当时间不同的时候浏览不同的网站的操作,但不会取得时间呀 我想这样写得不得 dim time time=now() if time=7:25-9:45 then call a elseif time=10:04-13:23 then call b else call c end if 这time=7:25-9:45 部分我不会写呀? 帮一下忙啦!
tigerwen01(小虎)搞错了
如果你是比较时间的话,直接下面:
if time>=#7:25:00# and time<#9:45:00# then
call a
elseif time>=#10:04:00# and time<#13:23:00# then
call b
else
call c
end if
<%
dim curtime
curtime=cdate(hour(now())&":"&minute(now()))
if datediff("m","7:25:00",curtime)>=0 and datediff("m","9:45:00",curtime)<0 then
call a
elseif datediff("m","10:04:00",curtime)>=0 and datediff("m","13:23:00",curtime)<0 then
call b
else
call c
end if