title: How to parse UNIX timestamps with luxon?
body: <p>I tried to use the <code>luxon</code> library to move away from <code>moment</code> - to translate the <code>1615065599.426264</code> timestamp into an ISO date.</p>
  <p>According to the <a href="https://www.epochconverter.com/" rel="noreferrer">Online Epoch Converter</a> this corresponds to</p>
  <blockquote>
  <p>GMT: Saturday, March 6, 2021 9:19:59.426 PM<br />
  Your time zone: Saturday, March 6, 2021 10:19:59.426 PM GMT+01:00<br />
  Relative: 3 days ago</p>
  </blockquote>
  <p>Removing the decimal part gives the same result.</p>
  <p>The code using <code>luxon</code>:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let timestamp = 1615065599.426264
  console.log(luxon.DateTime.fromMillis(Math.trunc(timestamp)).toISO())
  console.log(luxon.DateTime.fromMillis(timestamp).toISO())</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://moment.github.io/luxon/global/luxon.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>This result is</p>
  <pre><code>1970-01-19T17:37:45.599+01:00
  1970-01-19T17:37:45.599+01:00
  </code></pre>
  <p>It is suspiciously close to <a href="https://en.wikipedia.org/wiki/Unix_time" rel="noreferrer">Unix Epoch</a> (1970-01-01 00:00:00).</p>
  <p>Where is my mistake?</p>