title: What is python equivalent of C#'s system.datetime.Ticks()?
body: <p>I would like to get python equivalent of timestamp.Ticks(), however I need it to come from a python datetime, not a time object.</p>
  
  <p>This is not the equivalent of <a href="https://stackoverflow.com/questions/156330">Get timer ticks in Python</a>, which asks 'how do I get the number of ticks since midnight?'.</p>
  
  <p>I am asking how do I get the number of ticks of a given datetime. By ticks I mean system.datetime.ticks: </p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/system.datetime.ticks%28v=vs.110%29.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/system.datetime.ticks%28v=vs.110%29.aspx</a></p>
  
  <p>By 'get equivalent of' I mean 'what is the python code that will give the equivalent output of the C# code?'.</p>