<?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 Re: Strange time format from RestAPI in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/165032#M28182</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't need near real-time values.&amp;nbsp; I need a format to parse it into days hour:minute.&lt;/P&gt;&lt;P&gt;The format of the string depends on the time. Thats a regex-if expression hell to extract the info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lag time in seconds delivered by the API is more helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 06:59:02 GMT</pubDate>
    <dc:creator>marcusgross</dc:creator>
    <dc:date>2021-03-17T06:59:02Z</dc:date>
    <item>
      <title>Strange time format from RestAPI</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/164988#M28179</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I use the RestAPI for Ontap 9.7 to get Snapmirror details, the lag time has a strange format to me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i.e. PT8H35M42S or&amp;nbsp;P28DT3H59M55S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which format is it? How can I parse it into days, hours and minutes using Powershell?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:31:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/164988#M28179</guid>
      <dc:creator>marcusgross</dc:creator>
      <dc:date>2025-06-04T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strange time format from RestAPI</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/164999#M28180</link>
      <description>&lt;P&gt;Looking at your two examples, this is how I interpret them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P28DT3H59M55S&amp;nbsp;→ 28 Days, 3 Hours, 59 Minutes, 55 Seconds....I think.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PT8H35M42S&amp;nbsp;→ 8 Hours, 35 Minutes, 42 Seconds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps you could issue the API call at roughly the same time as the CLI command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;snapmirror show -fields lag-time&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Comparing the two may provide you with the necessary insight to decode, feel free to post the output of the two here and I'll have a look.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 17:36:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/164999#M28180</guid>
      <dc:creator>CHRISMAKI</dc:creator>
      <dc:date>2021-03-16T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strange time format from RestAPI</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/165002#M28181</link>
      <description>&lt;P&gt;I've just had a look at this using a lab environment and confirm what I had stated, have a look:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-03-16 at 11.07.19 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/11134i17A73768B72F8747/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-03-16 at 11.07.19 AM.png" alt="Screen Shot 2021-03-16 at 11.07.19 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was unable to grab a screenshot with the two times perfectly synced as the GUI refreshes on it's own constantly in an attempt to provide near-realtime status.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 18:08:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/165002#M28181</guid>
      <dc:creator>CHRISMAKI</dc:creator>
      <dc:date>2021-03-16T18:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Strange time format from RestAPI</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/165032#M28182</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't need near real-time values.&amp;nbsp; I need a format to parse it into days hour:minute.&lt;/P&gt;&lt;P&gt;The format of the string depends on the time. Thats a regex-if expression hell to extract the info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The lag time in seconds delivered by the API is more helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 06:59:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/165032#M28182</guid>
      <dc:creator>marcusgross</dc:creator>
      <dc:date>2021-03-17T06:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Strange time format from RestAPI</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/165126#M28185</link>
      <description>&lt;P&gt;This is actually ISO 8601 time span format:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/ISO_8601#Durations" target="_blank"&gt;https://en.wikipedia.org/wiki/ISO_8601#Durations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a link to a PowerShell function that might help you get the end result you want (at least the regex stuff):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.powershellgallery.com/packages/AzureSimpleREST/0.1.8/Content/internal%5Cfunctions%5CConvert-ISO8601ToTimespan.ps1" target="_self"&gt;https://www.powershellgallery.com/packages/AzureSimpleREST/0.1.8/Content/internal%5Cfunctions%5CConvert-ISO8601ToTimespan.ps1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:04:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Strange-time-format-from-RestAPI/m-p/165126#M28185</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2021-03-18T15:04:17Z</dc:date>
    </item>
  </channel>
</rss>

