title: How do I convert from an IronPython datetime to a .NET DateTime?
body: <p>Literally the inverse of <a href="https://stackoverflow.com/q/6296841/241211">this question</a>, is there an easy way to get a .Net <code>DateTime</code> from an IronPython <code>datetime</code>?</p>
  
  <p>Clearly, one could</p>
  
  <ul>
  <li>Output a string and parse it or</li>
  <li>Dump all the date parts into a <code>DateTime</code> constructor</li>
  </ul>
  
  <p>but those are both messy. This doesn't work either:</p>
  
  <pre class="lang-python prettyprint-override"><code>pydate = datetime.datetime.now()
  csharp = DateTime(pydate) # Crashes, because .Net wants a 'long' for Ticks
  </code></pre>
  
  <p>Is there an easy cast or a short way to get the <code>Ticks</code> that .Net wants?</p>