How to get time in seconds from d-m-y h:i:s? : <p>I found this:</p>

<pre><code>$minutes = (strtotime("2012-09-21 12:12:22") - time()) / 60;
</code></pre>

<p><a href="https://stackoverflow.com/questions/12520145/number-of-minutes-between-two-dates/12520198">In this question</a></p>

<p>But the string from the API that I took is like 06-09-19 | 16:23:17 and this code don't work at all.</p>

<p>How can I do?</p>

<p>Thanks.</p>
