Write a python script to generate a timestamp ( unix epoch value) each day at a give time
<p>I want to write a small python which needs to generate a simple precise timestamp  each day ( the script will be run each day) at a particular hour say 1pm. I wrote something like this: </p>

<pre><code>from datetime import datetime
now = datetime.utcnow() # Current time
then = datetime(1970,1,1) # 0 epoch time
ts = now - then
ts = ts.days * 24 * 3600 + ts.seconds
print ts
</code></pre>

<p>This is good, but i want to pass <code>now</code> for the time_field that i on daily basis. How do I do this?</p>