<?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: Convert time from character to continous in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388894#M63898</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6736"&gt;@aliegner1&lt;/a&gt;&amp;nbsp; That time format is most likely ISO 8601 time format with milliseconds.I think JMP will recognize it correctly if you were to just remove .000000Z from the end (if you don't need it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way to get rid of .000000Z would be with formula like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word(1, :wafer_process_start_time, ".")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 19:35:06 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-05-27T19:35:06Z</dc:date>
    <item>
      <title>Convert time from character to continous</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388848#M63892</link>
      <description>&lt;P&gt;I have a "Time" column in my dataset and am attempting to convert it to Continuous data type. I am using the "Set Format Pattern" in JMP 16 and everything looks OK except for the timestamps at midnight. This is because the midnight time (00:00:00) in the original dataset is missing. See the attached picture. Any suggestions on how to fix it?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Time Conversion.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33102i1D0EE6801E8A16ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Time Conversion.png" alt="Time Conversion.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:30:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388848#M63892</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2023-06-10T23:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time from character to continous</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388863#M63893</link>
      <description>&lt;P&gt;not an answer, but I came here to post something very similar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a date timestamp coming in as Character&amp;gt;Nominal in this wierd timezone format that I can't figure out how to convert to a proper date-timestamp.&lt;/P&gt;&lt;P&gt;2021-05-05T15:04:52.000000Z&lt;/P&gt;&lt;P&gt;changing the properties results in an empty column. How to script this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="aliegner1_0-1622140164904.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33103iEDE8F38CFC45870C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aliegner1_0-1622140164904.png" alt="aliegner1_0-1622140164904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 18:30:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388863#M63893</guid>
      <dc:creator>aliegner1</dc:creator>
      <dc:date>2021-05-27T18:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time from character to continous</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388888#M63897</link>
      <description>&lt;P&gt;I would most likely start by fixing the wrong data. If there are only couple of wrong values you could use recode or you could write some formula to do the fixing for you. Below is one option that could work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled 3",
	Add Rows(5),
	Compress File When Saved(1),
	New Column("datechar",
		Character,
		"None",
		Set Values(
			{"13.05.2021 20:00:00", "13.05.2021 21:00:00", "13.05.2021 22:00:00",
			"13.05.2021 23:00:00", "14.05.2021", "14.05.2021 01:00:00"}
		)
	)
);
wait(1);
Column(dt, "datechar") &amp;lt;&amp;lt; Set Each Value(If(Length(:datechar) &amp;lt;= Length("14.05.2021"),
	:datechar || " 00:00:00", :datechar));&lt;/CODE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 19:23:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388888#M63897</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-05-27T19:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time from character to continous</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388894#M63898</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6736"&gt;@aliegner1&lt;/a&gt;&amp;nbsp; That time format is most likely ISO 8601 time format with milliseconds.I think JMP will recognize it correctly if you were to just remove .000000Z from the end (if you don't need it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way to get rid of .000000Z would be with formula like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word(1, :wafer_process_start_time, ".")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 19:35:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388894#M63898</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-05-27T19:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time from character to continous</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388910#M63902</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16275"&gt;@shasheminassab&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would just pass through the Time(Character) column and add " 00:00:00" if the hours, minutes, seconds do not appear&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

For Each Row(
	If( Contains( :"Time(Character)"n, ":" ) == 0,
		:"Time(Character)"n = :"Time(Character)"n || " 00:00:00"
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 20:04:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388910#M63902</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-27T20:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time from character to continous</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388946#M63906</link>
      <description>Thanks Jim. Very helpful as always.&lt;BR /&gt;&lt;BR /&gt;Sina</description>
      <pubDate>Thu, 27 May 2021 23:53:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-time-from-character-to-continous/m-p/388946#M63906</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2021-05-27T23:53:43Z</dc:date>
    </item>
  </channel>
</rss>

