时间函数的问题(2)

lbx972 2003-10-08 05:13:52
我想当时间不同的时候浏览不同的网站的操作,但不会取得时间呀
我想这样写得不得
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 部分我不会写呀? 帮一下忙啦!
...全文
21 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Iamfish 2003-10-08
  • 打赏
  • 举报
回复
注意:懂(慎)用time做为变量因为time/day/date/now都是VBS的内置函数
Iamfish 2003-10-08
  • 打赏
  • 举报
回复
时间/日期用##


#12:01:01#
#2003-12-12#

注意:懂用time做为变量因为time/day/date/now都是VBS的内置函数。
ljupin 2003-10-08
  • 打赏
  • 举报
回复
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
tigerwen01 2003-10-08
  • 打赏
  • 举报
回复
dim time
time=now()
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
angelheavens 2003-10-08
  • 打赏
  • 举报
回复
<%
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

%>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧