<!DOCTYPE html>
<html>
<head>
<title>il metodo getFullYear() in JavaScript</title>
<script type="text/javascript">
var oggi = new Date();
var annoOggi = oggi.getFullYear();
document.write("<p>Oggi siamo nell'anno " + annoOggi + "</p>");
var timestamp = new Date(390655800000);
var annoTimestamp = timestamp.getFullYear();
document.write("<p>L'anno corrispondente a questo timestamp in millisecondi è " + annoTimestamp + "</p>");
</script>
</head>
<body>
</body>
</html>