JavaScript Dispaly Users Kodu
Browsers: All
Server requirements:N/A
Additional Information:
Note: paste this code into the page where you want to display the users local time. -->
<h4>It is now
<script type="text/javascript">
<!--
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
if (minutes < 10){= "0" + minutes
}
document.write(hours + ":" + minutes + " ")
if(hours > 11){.write("PM")
} else {
document.write("AM")
}
//-->
</script>
</h4>
document
minutes