. 神仙醋°男孩

asp 固定时间数转几天几小时几分几秒

当前位置:新空网络工作室 > 论坛交流 > 列表
发表时间 2018/9/4 23:59:44
楼主
<%
Times=16510100 '秒
RunDayOld=Times/1000/60/24
RunDay=Fix(RunDayOld)
RunHourOld=(RunDayOld-RunDay)*24
RunHour=Fix(RunHourOld)
RunMinuteOld=(RunHourOld-RunHour)*60
RunMinute=Fix(RunMinuteOld)
RunSeconds=Fix((RunMinuteOld-RunMinute)*60)
'时间补0
RunHour=right("0"&RunHour,2)
RunMinute=right("0"&RunMinute,2)
RunSeconds=right("0"&RunSeconds,2)
%>
    已经运行 <%=RunDay%>天<%=RunHour%>时<%=RunMinute%>分<%=RunSeconds%>秒
</div>


. 您还没有登录
保存远程图片到论坛