Get timestamp in seconds from python's datetime
<p>How to get timestamp from the structure datetime? What is right alternative for non-existing <code>datetime.utcnow().timestamp()</code>?</p>

<p>If I understand correctly what sort of output you are seeking:</p>

<pre><code>from datetime import datetime
timestamp = datetime.now().strftime("%H:%M:%S")
print(timestamp)

&gt; 11:44:40
</code></pre>

<p>EDIT: Appears I misinterpreted your question? You are asking for the naive universal time, then galaxyan's answer is concise.</p>

python timestamp