jeanpaul1979
12-24-2006, 12:46 PM
Hi, i've been experimenting with this but have yet to find a solution if there is one. Below you can see how far i have come. They both return the time passed since the epoch but still i get different values, any idea why?
<script>
//UTC() returns milliseconds, mktime returns seconds
document.write(Date.UTC(1979, 09, 01) / 1000);
</script>
<?php
echo '<br>';
echo mktime(0, 0, 0, 09, 01, 1979);
?>
output:
307584000
281314800
<script>
//UTC() returns milliseconds, mktime returns seconds
document.write(Date.UTC(1979, 09, 01) / 1000);
</script>
<?php
echo '<br>';
echo mktime(0, 0, 0, 09, 01, 1979);
?>
output:
307584000
281314800