diedVIPs

html knowhow

Heutiges Datum mit Uhrzeit










Heutiges Datum mit Uhrzeit

So sieht´s aus



Heute ist 



Quellcode
<html>
<script type="text/javascript"> function getCurrentTime()
{var now = new Date(); var mySecs = now.getSeconds(); var curHour = now.getHours(); var curMin = now.getMinutes(); var day = now.getDay(); var date = now.getDate(); var year = now.getFullYear(); var month = now.getMonth(); var days = new Array();
days[0] = "Sonntag"; days[1] = "Montag"; days[2] = "Dienstag"; days[3] = "Mittwoch"; days[4] = "Donnerstag"; days[5] = "Freitag"; days[6] = "Samstag";
var suffix = ""; if(mySecs < 10) {mySecs = "0" + mySecs;} if(curMin < 10) {curMin = "0" + curMin;} if(curHour == 12 && curMin >= 1) { suffix = "PM";} if(curHour == 24 && curMin >= 1) {curHour-= 12; suffix = "AM";}
document.getElementById('time').innerHTML=(days[day] + ", der " + date + "." + (month +1) + "." + year + ", und es ist " + curHour + ":" + curMin + ":" + mySecs + " " + " Uhr");}
</script>


<style type="text/css">
#frame1 {color:lime;font-family: "Courgette";}
</style>
</html>

<body  onload="setInterval('getCurrentTime()', 1000);" >
<p style="color:white"><script language="JavaScript">
var dLM = new Date(Date.parse(document.lastModified));
var day = new Array("Sonntag","Montag","Dienstag","Mittwoch", "Donnerstag","Freitag","Samstag");
var month = new Array("1","2","3","4","5", "6","7","8","9","10","11","12");
var date = dLM.getDate();
var day = day[dLM.getDay()];
var year = dLM.getFullYear();
var month = month[dLM.getMonth()];
var hours = dLM.getHours();
var minutes = dLM.getMinutes();
var seconds = dLM.getSeconds();

if (date<10) date = "0"+date;
if (month<10) month = "0"+month;
if (hours<10) hours = "0"+hours;
if (minutes<10) minutes = "0"+minutes;
if (seconds<10) seconds = "0"+seconds;

document.write("Letzte Änderung der Seite am "+day+", dem "+date+"."+month+"."+year+", um "+hours+":"+minutes+":"+seconds);
</script></p>
</body>










Kontakt    Datenschutz    Impressum