<?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: Time format  2018-01-01 00:00:00+08:00 not recognized in JMP during importing in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245620#M48270</link>
    <description>&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Message has been edited to correct the error that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;, pointed out below. I originally had the signs backwards on the adjustments to GMT. -Jeff&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;is close, but I think the value after the plus (+) isn't the time,&amp;nbsp;it's the offset from GMT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you want to convert everything back to GMT you'll need to take the offset into account:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat( Word( 1, :ISO 8601 Datetime ), "yyyy-mm-dd" )
+Informat( Word( 1, Word( 2, :ISO 8601 Datetime ), "-+" ), "hh:mm:ss" )
+Match( Contains( :ISO 8601 Datetime, "+" ) &amp;gt; 0,
	0, Informat( Word( 2, Word( 2, :ISO 8601 Datetime ), "-" ), "h:m" ),
	-Informat( Word( 2, :ISO 8601 Datetime, "+" ), "h:m" )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It may be easier to read in the Formula Editor where you'll want to use this anyway:&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="2020-02-05_12-35-22.290.png" style="width: 688px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21597iAD8102EE7EACAA62/image-dimensions/688x129?v=v2" width="688" height="129" role="button" title="2020-02-05_12-35-22.290.png" alt="2020-02-05_12-35-22.290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm attaching a data table with an example with the formula column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-02-05_12-36-41.181.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21598i6ADE7209026A4898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-02-05_12-36-41.181.png" alt="2020-02-05_12-36-41.181.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 11:37:35 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2020-02-05T11:37:35Z</dc:date>
    <item>
      <title>Time format  2018-01-01 00:00:00+08:00 not recognized in JMP during importing</title>
      <link>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245597#M48268</link>
      <description>&lt;P&gt;per ISO_8601,&amp;nbsp;2018-01-01 00:00:00+08:00 is a standard time format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I make JMP to accept this format so I don't have to modify the format at each of the import tasks?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:52:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245597#M48268</guid>
      <dc:creator>MikeDou</dc:creator>
      <dc:date>2020-02-03T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  2018-01-01 00:00:00+08:00 not recognized in JMP during importing</title>
      <link>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245607#M48269</link>
      <description>&lt;P&gt;I don't see a format that works but you can break it down into two pieces: date and time. Add the pieces together. Here is a formula that could be used in a second column to store the numeric data that represents the date and time:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;time in = "2018-01-01 00:00:00+08:00";  // represents a row in the data table

In Format( Word( 1, time in ), "yyy-mm-dd" ) + In Format( Word( 2, time in, "+" ), "h:m" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Feb 2020 20:53:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245607#M48269</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-02-03T20:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  2018-01-01 00:00:00+08:00 not recognized in JMP during importing</title>
      <link>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245620#M48270</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Message has been edited to correct the error that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;, pointed out below. I originally had the signs backwards on the adjustments to GMT. -Jeff&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;is close, but I think the value after the plus (+) isn't the time,&amp;nbsp;it's the offset from GMT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you want to convert everything back to GMT you'll need to take the offset into account:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat( Word( 1, :ISO 8601 Datetime ), "yyyy-mm-dd" )
+Informat( Word( 1, Word( 2, :ISO 8601 Datetime ), "-+" ), "hh:mm:ss" )
+Match( Contains( :ISO 8601 Datetime, "+" ) &amp;gt; 0,
	0, Informat( Word( 2, Word( 2, :ISO 8601 Datetime ), "-" ), "h:m" ),
	-Informat( Word( 2, :ISO 8601 Datetime, "+" ), "h:m" )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It may be easier to read in the Formula Editor where you'll want to use this anyway:&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="2020-02-05_12-35-22.290.png" style="width: 688px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21597iAD8102EE7EACAA62/image-dimensions/688x129?v=v2" width="688" height="129" role="button" title="2020-02-05_12-35-22.290.png" alt="2020-02-05_12-35-22.290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm attaching a data table with an example with the formula column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-02-05_12-36-41.181.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21598i6ADE7209026A4898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-02-05_12-36-41.181.png" alt="2020-02-05_12-36-41.181.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 11:37:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245620#M48270</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-02-05T11:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  2018-01-01 00:00:00+08:00 not recognized in JMP during importing</title>
      <link>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245771#M48287</link>
      <description>&lt;P&gt;Hello from -5 land.&lt;/P&gt;&lt;P&gt;I like Jeff's answer (probably needs a sign change), depending...&lt;/P&gt;&lt;P&gt;Those numbers are the time zone. JMP doesn't have much time zone support. Mostly times are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;always in the same time zone and the zone can be ignored,&lt;/LI&gt;&lt;LI&gt;or local time is what is needed: 11:00AM is just before lunch, and the zone can be ignored.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;But, time zones make a big difference if you need to know the ordering of events in different zones. In that case, converting back to UTC is the right answer. Then you can add a table variable with a note like "All times in UTC" to reduce confusion.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Also: test any code that manipulates times carefully.&lt;/EM&gt; I had to study Jeff's formula to understand the match...contains...0... stuff, and it might be correct (or the sign might be reversed).&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/ISO_8601&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm in zone -5 ("five hours behind UTC"). I'm pretty sure I have to add 5 (&lt;STRONG&gt;or subtract -5&lt;/STRONG&gt;) to my time to get UTC. I think the "+match(" should be "-match(".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a &lt;A href="https://upload.wikimedia.org/wikipedia/commons/8/88/World_Time_Zones_Map.png" target="_blank" rel="noopener"&gt;wikipedia map&lt;/A&gt;&amp;nbsp;of time zones&lt;/LI&gt;&lt;LI&gt;blog on &lt;A href="https://community.jmp.com/t5/Uncharted/UTC-Time-Zone/ba-p/28942" target="_blank" rel="noopener"&gt;UTC&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.youtube.com/watch?v=N20KsrmdgOU" target="_blank" rel="noopener"&gt;video&lt;/A&gt; for another&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Uncharted/7-things-to-know-about-Twitter/ba-p/21000" target="_blank" rel="noopener"&gt;blog&lt;/A&gt;, watch the Monday/Tuesday annotation at the bottom edge.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Making that last video was how I finally grasped the International Date Line concept; in the map the date line appears on the left and right edges and the +00:00 zone is in the center. Watch how, at noon in London, it is briefly the same day everywhere. The annotation at the bottom switches days when it jumps back to the right side. When it shows Monday/Tuesday at the right side, Tuesday has just begun at midnight at the date line, and it is Monday everywhere else. As midnight sweeps from right-to-left, Monday ends all across the map until it is Tuesday, everywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 16:15:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/245771#M48287</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-02-04T16:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  2018-01-01 00:00:00+08:00 not recognized in JMP during importing</title>
      <link>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/246009#M48336</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;, you're right. I did mess up the sign.&amp;nbsp;I've corrected in my post above.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 11:53:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-format-2018-01-01-00-00-00-08-00-not-recognized-in-JMP/m-p/246009#M48336</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-02-05T11:53:58Z</dc:date>
    </item>
  </channel>
</rss>

