Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <meta charset="utf-8">
- </head>
- <body>
- <div id="cz">
- </div>
- <script language="javascript" type="text/javascript">
- function poniedzialek() {
- var czas = new Date();
- var godziny=czas.getHours()+":"+czas.getMinutes()+":"+czas.getSeconds();
- document.getElementById("cz").innerHTML=godziny;
- setTimeout("poniedzialek()",1000);
- }
- poniedzialek();
- //toString();
- //toLocalString();
- //toUTCString();
- //toGMTString();
- //toLocaleDateString();
- //d=czas.toLocalString();
- //document.write(toString);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement