Javascript: Number <--> UTC
<script>
document.write(
(new Date(112345920*1000)).toUTCString());
document.write(Date.UTC(2007, 06, 07)/1000);
</script>
Attention:
- The month is ZERO-based while invoke UTC.
- Millisecond, other than Second, is the functions variables
Reference: Date reference from w3schools.
Labels: development, tech





