Which date and time format is most interesting to return with an API
<p>With our API, we want to send some informations about our objects, like publication <strong>date and time</strong>. <strong>Which format do you recommend to return</strong>, to ensure easy use, with different programming languages (PHP, Ruby, JavaScript, ...) ?</p>

<p>I thought of 2 responses:</p>

<pre><code>{
  "published": "2016-06-30T14:45:16+0200", //ISO 8601
  ...
}
</code></pre>

<p>or </p>

<pre><code>{
  "published": 1467290716, //Timestamp
  ...
}
</code></pre>

<p>Thanks in advance !</p>