展会信息港展会大全

asp 程序提示中午好,上午好程序
来源:互联网   发布日期:2016-03-01 11:04:27   浏览:1274次  

导读:function jdsj() n = cstr(right(year(date()),2)) + - y = cstr(month(date())) + - if len(y) = 2 then y = 0 + y r = cstr(day(date())) if len(r) = 1 then r = 0 + r h = cstr(hour(now())) + - if len(h) = 2 then h = 0 + h f = cstr(minute(now()))...

function jdsj()

n = cstr(right(year(date()),2)) + "-"

y = cstr(month(date())) + "-"

if len(y) = 2 then y = "0" + y

r = cstr(day(date()))

if len(r) = 1 then r = "0" + r

h = cstr(hour(now())) + "-"

if len(h) = 2 then h = "0" + h

f = cstr(minute(now()))

if len(f) = 1 then f = "0" + f

jdsj = n + y + r + " " + h + f

end function

xxsj = cstr(year(date())) + "年" + cstr(month(date())) + "月" + cstr(day(date())) + "日 " + weekdayname(weekday(now))

Function WHY()

mytime = hour(now())

if mytime>=5 and mytime<9 then why = "早上好!"

if mytime>=9 and mytime<11 then why = "上午好!"

if mytime>=11 and mytime<13 then why = "中午好!"

if mytime>=13 and mytime<18 then why = "下午好!"

if mytime>=18 and mytime<24 then why = "晚上好!"

if mytime>=00 and mytime<5 then why = "挺晚了,注意休息啊!"

End Function

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港