1 Star 0 Fork 0

晏传锋 / tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
时间差.bas 549 Bytes
一键复制 编辑 原始数据 按行查看 历史
Attribute VB_Name = "timecalc"
Function tomilltime(ID As String) As Double
Dim year As String
Dim month As String
Dim day As String
Dim hour As String
Dim mintue As String
Dim second As String
Dim re As String
year = Mid(ID, 1, 4)
month = Mid(ID, 5, 2)
day = Mid(ID, 7, 2)
hour = Mid(ID, 9, 2)
mintue = Mid(ID, 11, 2)
second = Mid(ID, 13, 2)
re = year + "-" + month + "-" + day + " " + hour + ":" + mintue + ":" + second
tomilltime = Val(hour) * 60 * 60 * 1000 + Val(mintue) * 60 * 1000 + Val(second) * 1000
End Function
Visual Basic
1
https://gitee.com/yancf/tools.git
git@gitee.com:yancf/tools.git
yancf
tools
tools
master

搜索帮助