Access开发培训
网站公告
·Access专家课堂QQ群号:151711184    ·Access快速开发平台下载地址及教程    ·欢迎加入Access专家课堂微信群!    ·如何快速搜索本站文章|示例|资料    
您的位置: 首页 > 技术文章 > Access数据库-模块/函数/VBA

秒数转换成时间格式

时 间:2012-07-14 08:56:35
作 者:叶海峰   ID:31  城市:广州
摘 要:秒数转换成时间格式
正 文:

Function SecondsToHour(Seconds As Integer)
    Dim h
    Dim m
    Dim s
    h = Int(Seconds / 3600)
    m = (Seconds / 60) Mod 60
    s = Seconds Mod 60
    SecondsToTime = Format(h, "00") & ":" & Format(m, "00") & ":" & Format(s, "00")
End Function

Sub a()
MsgBox SecondsToHour(80)
End Sub



Access软件网官方交流QQ群 (群号:483923997)       Access源码网店

常见问答:

技术分类:

相关资源:

专栏作家

关于我们 | 服务条款 | 在线投稿 | 友情链接 | 网站统计 | 网站帮助