interesting....
why does my call to
$tmpTime = mktime($tmp); keep changing? // $tmp being a properly (re)formatted 'HismdY' date base on the mysql timestamp//
wouldn't I expect mktime to stay static if I'm seeding it with a static date?
$storedDateTime ='20031006143015';// string of timestamp stored in db
echo 'MySQL TimeStamp -- '.$storedDateTime.'<BR>';
// is there a better way to do this part?
$tmpY = substr($storedDateTime, 0, 4);
$tmpM = substr($storedDateTime, 4, 2);
$tmpD = substr($storedDateTime, 6, 2);
$tmpH = substr($storedDateTime, 8, 2);
$tmpI = substr($storedDateTime, 10, 2);
$tmpS = substr($storedDateTime, 12, 2);
$tmp = $tmpH.','.$tmpI.','.$tmpS.','.$tmpM.','.$tmpD.','.$tmpY;
echo '"HisdmY" formatted date for mktime() -- '.$tmp.'<br>';
$tmpTime = mktime($tmp); // this value keeps changing even though the timestamp doesn't?
$curDateTime = time();
echo 'tmpTime (from mktime()) -- '.$tmpTime.'<br> <br>';
echo 'new Date (reversed tmpTime) -- '.date('YmdHis',$tmpTime).'<br> <br>';
echo 'curTime (from time())-- '.$curDateTime.'<br> <br>';
echo 'Current Time (reversed curTime)-- '.date('YmdHis',$curDateTime).'<br> <br>';