<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OnCommand API Services - Convert timestamp to date/time in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/OnCommand-API-Services-Convert-timestamp-to-date-time/m-p/118223#M1902</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert the timestamp from API Services output to date/time format, but I for some reason I cannot get a date/time format.&lt;/P&gt;&lt;P&gt;I tried to convert using python and I received a message that the year is out of range&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow below an example code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;datetime&lt;BR /&gt;&lt;BR /&gt;your_timestamp = &lt;SPAN&gt;1460409856461&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;datetime.datetime.fromtimestamp(your_timestamp)&lt;/PRE&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;ValueError: year is out of range&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 21:26:34 GMT</pubDate>
    <dc:creator>calori</dc:creator>
    <dc:date>2025-06-04T21:26:34Z</dc:date>
    <item>
      <title>OnCommand API Services - Convert timestamp to date/time</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/OnCommand-API-Services-Convert-timestamp-to-date-time/m-p/118223#M1902</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert the timestamp from API Services output to date/time format, but I for some reason I cannot get a date/time format.&lt;/P&gt;&lt;P&gt;I tried to convert using python and I received a message that the year is out of range&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow below an example code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;datetime&lt;BR /&gt;&lt;BR /&gt;your_timestamp = &lt;SPAN&gt;1460409856461&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;datetime.datetime.fromtimestamp(your_timestamp)&lt;/PRE&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;ValueError: year is out of range&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:26:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/OnCommand-API-Services-Convert-timestamp-to-date-time/m-p/118223#M1902</guid>
      <dc:creator>calori</dc:creator>
      <dc:date>2025-06-04T21:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: OnCommand API Services - Convert timestamp to date/time</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/OnCommand-API-Services-Convert-timestamp-to-date-time/m-p/118225#M1903</link>
      <description>&lt;P&gt;It might be in milliseconds, try dividing by 1000 (and rounding down to the nearest whole number).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:44:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/OnCommand-API-Services-Convert-timestamp-to-date-time/m-p/118225#M1903</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-04-12T17:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: OnCommand API Services - Convert timestamp to date/time</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/OnCommand-API-Services-Convert-timestamp-to-date-time/m-p/118226#M1904</link>
      <description>&lt;P&gt;Awesome my friend !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works ! &amp;nbsp;&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://community.netapp.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:46:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/OnCommand-API-Services-Convert-timestamp-to-date-time/m-p/118226#M1904</guid>
      <dc:creator>calori</dc:creator>
      <dc:date>2016-04-12T17:46:00Z</dc:date>
    </item>
  </channel>
</rss>

