Asp常用通用函数:生成时间的整数 函数介绍
Asp常用通用函数:生成时间的整数 函数介绍
发布时间:2017-01-04 来源:查字典编辑
摘要:'函数名:GetMyTimeNumber()'作用:生成时间的整数'参数:lx----时间整数的类型'lx=0到分钟lx=1到小时lx=2到...

'函数名:GetMyTimeNumber()

'作 用:生成时间的整数

'参 数:lx ---- 时间整数的类型

' lx=0 到分钟 lx=1 到小时 lx=2 到天 lx=3 到月

'返回值:生成时间的整数值(最小到分钟)

'示 例:

'**************************************************

Public Function GetMyTimeNumber(lx)

If lx=0 Then GetMyTimeNumber=Year(Date)*12*30*24*60+Month(Date)*30*24*60+Day(Date)*24*60+Hour(Time)*60+Minute(Time)

If lx=1 Then GetMyTimeNumber=Year(Date)*12*30*24+Month(Date)*30*24+Day(Date)*24+Hour(Time)

If lx=2 Then GetMyTimeNumber=Year(Date)*12*30+Month(Date)*30+Day(Date)

If lx=3 Then GetMyTimeNumber=Year(Date)*12+Month(Date)

End Function

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新编程开发学习
热门编程开发学习
软件教程子分类