title: Carbon create from timestamp
body: <p>I am trying to convert some dates </p>
  
  <pre><code>&lt;p&gt;{{  Carbon\Carbon::parse($post-&gt;created_at)-&gt;diffForHumans()  }}&lt;/p&gt;
  </code></pre>
  
  <p>This works fine as the date is in the format <strong>2017-05-01 10:52:51</strong></p>
  
  <p>However I also have the dates stored as unix timestamps.</p>
  
  <p>How can I covert these to a date?</p>
  
  <p>I already tried</p>
  
  <pre><code>{{  Carbon\Carbon::createFromTimestamp($post-&gt;created_at)-&gt;toDateTimeString()  }}
  </code></pre>
  
  <p><strong>Error - A non well formed numeric value encountered</strong></p>
  
  <p>The dump is</p>
  
  <pre><code> &lt;pre class="xdebug-var-dump" dir="ltr"&gt;
  &lt;small&gt;int&lt;/small&gt; 
  &lt;font color="#4e9a06"&gt;1493637826&lt;/font&gt;
      &lt;/pre&gt;
  </code></pre>