JavaScript Tutorial/Date/getHours — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:25, 26 мая 2010
Date.getHours()
The getHours() method returns the hour portion of the date expressed as an integer from 0 (12:00 a.m. midnight) to 23 (11:00 p.m.).
<source lang="javascript">
<html> <head> <title>Current Hour</title> </head> <body> <script language="JavaScript" type="text/javascript">
</script> </body> </html></source>