If
$today = "11/13/08";
and I
echo "Timestamp using 'mktime' is ";
echo mktime($today);
and then I
echo "Timestamp using 'strtotime is ";
echo strtotime($today);
I get two different timestamps:
"Timestamp using 'mktime' is 1226592336
Timestamp using 'strtotime is 1226552400"
Why? What's the difference between mktime and strtotime? Which one is correct or more accurate?
Thanks!
Joe
===
I think I just answered my own question...
mktime($today) includes the hour,minute and seconds -- right??
If I
echo "Timestamp using 'mktime' is ";
echo mktime(0,0,0,$today);
echo "<br>";
echo "Timestamp using 'strtotime is ";
echo strtotime($today);
I get
"Timestamp using 'mktime' is 1226552400
Timestamp using 'strtotime is 1226552400"
Am I correct?