Creating a php date object current date without seconds
<p>I need a date object that has a time of 12:00:00am for the current day (meaning no seconds). I am converting that to that to the number of seconds and passing it in another function. It is eventually used for a report filter using date = "someDateHere' off the database, and the hanging seconds in the field are screwing up the report.</p>

<p>I'm not sure what to put in the second parameter in the time function  - leaving it blank will use the current time, which is what I do not want. I can't find examples or anything in the php doc.  If there is another function that will do the job, I am open to suggestions. This should be simple, but it is alluding me.</p>

<pre><code>        date_default_timezone_set('America/Detroit');
        $now = date("Y-m-d 0:0:0");
        echo $now . '&lt;br/&gt;';
        $now = time($now,0);
        echo $now . '&lt;br/&gt;';
</code></pre>

<p>Thanks in advance.</p>

<p>edit: Please note: I need to convert that date object to seconds. That is where the timestamp is screwing me up with strtotime function and time function. Even though I am passing it a dateobject <em>without</em> a timestamp, converting it into seconds not-so-conveniently is inserting the timestamp as the second parameter which defaults to the current time. </p>
