以后地位:首页 > 建站常识 > 列表

宣布时候 显现为几多小时前的结果

点击: 次时候:2016/12/22关头词:asp开辟 上海网页建造 网站开辟
宣布时候 显现为几多小时前的结果,以下是上海网页建造供给现实代码limit=DateDiff("s","2009-1-17 9:05:35","2009-2-17 10:05:55")response.Write limit&"秒"response

asp开辟技能

宣布时候 显现为几多小时前的结果,以下是上海网页建造供给现实代码

limit=DateDiff("s","2009-1-17 9:05:35","2009-2-17 10:05:55")response.Write  limit&"秒"response.Write  ("<hr>")if (limit < 60) then   show_t = "方才"if (limit >= 60 and limit < 3600) then  show_t = INT(limit/60) &"分钟前"if (limit >= 3600 and limit < 86400) then   show_t = INT(limit/3600) &"小时前"if (limit >= 86400 and limit < 2592000) then   show_t = INT(limit/86400) &"天前"if (limit >= 2592000 and limit < 31104000) then   show_t = INT(limit/2592000)  &"个月前"if limit >= 31104000 then  show_t = "好久前"response.Write  (show_t)
预定建站
收费供给网站优化
支付关头词