SHARE
TWEET

Untitled

a guest Oct 13th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.  
  3. function aktualizacja_czas()
  4. {
  5.     var data = new Date();
  6.  
  7.     var day = data.getDate();
  8.     var month = data.getMonth()+1;
  9.     var year = data.getFullYear();
  10.  
  11.     var hour = data.getHours();
  12.     if (hour<10) hour = "0" + hour;
  13.     var minutes = data.getMinutes();
  14.     if (minutes<10) minutes = "0" + minutes;
  15.     var seconds = data.getSeconds();
  16.     if (seconds<10) seconds = "0" + seconds;
  17.  
  18.     document.getElementById("zegarek").innerHTML =
  19.     day +"/" + month + "/" + year +  " | " + hour + ":" + minutes + ":" + seconds;
  20.  
  21.     setTimeout("aktualizacja_czas()",1000);
  22. }
  23. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top