função VBScript TimeValue
TimeValue função retorna uma variante do subtipo Date contendo a hora.
gramática
TimeValue(time)
参数 | 描述 |
---|---|
time | 必需。介于 0:00:00 (12:00:00 A.M.) - 23:59:59 (11:59:59 P.M.) 的时间,或任何表示此范围内时间的表达式。 |
Exemplos
Exemplos
<script type="text/vbscript">
document.write(TimeValue("5:55:59 PM") & "<br />")
document.write(TimeValue(#5:55:59 PM#) & "<br />")
document.write(TimeValue("15:34"))
</script>
document.write(TimeValue("5:55:59 PM") & "<br />")
document.write(TimeValue(#5:55:59 PM#) & "<br />")
document.write(TimeValue("15:34"))
</script>
Exemplos de saída acima:
5:55:59 PM
5:55:59 PM
3:34:00 PM
5:55:59 PM
3:34:00 PM
tente »
Completa VBScript Referência