<?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 character time to numeric continuous time in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338524#M58647</link>
    <description>&lt;P&gt;If you use Mark's approach, you'll need to remove the extra bits first. I used a regex in the find/replace dialog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="You have to run it twice. The first time removes the day and the second the GMT." style="width: 697px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28685iA2170397651E1411/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="You have to run it twice. The first time removes the day and the second the GMT." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;You have to run it twice. The first time removes the day and the second the GMT.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The regex matches three letters followed by a comma and a space, or it matches a space followed by GMT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Change DataType *and* Format at the *same* time or you'll get missing values." style="width: 528px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28686i43247086CCFA890C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Change DataType *and* Format at the *same* time or you'll get missing values." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Change DataType *and* Format at the *same* time or you'll get missing values.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use Jim's approach, I think the 5-5-5 at the end should be 5-6-7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 15:08:05 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2020-12-01T15:08:05Z</dc:date>
    <item>
      <title>Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338363#M58621</link>
      <description>&lt;P&gt;I have a dataset that the time column is in this format "Mon, 30 Nov 2020 21:42:26 GMT" and JMP recognizes that as a character data type. Is there a quick way to convert this column to numeric continuous type?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:23:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338363#M58621</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2023-06-10T23:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338385#M58622</link>
      <description>&lt;P&gt;Here is a little script that will create a new column with the converted value.&amp;nbsp; Please note that I am assuming your current column with the character date in it is called "Date".&amp;nbsp; Please change the script to what the real column's name is.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

dt &amp;lt;&amp;lt; New Column( "Date Time",
	Format( "ddMonyyyy h:m:s", 22, 0 ),
	Input Format( "ddMonyyyy h:m:s", 0 ),
	,
	formula(
		Informat(
			Word( 2, :Date, ", :" ) || Word( 3, :Date, ", :" ) ||
			Word( 4, :Date, ", :" ) || " " ||
			Word( 5, :Date, ", :" ) || ":" ||
			Word( 5, :Date, ", :" ) || ":" ||
			Word( 5, :Date, ", :" ),
			"ddMonyyy h:m:s"
		)
	)
);
dt:Date Time &amp;lt;&amp;lt; delete formula;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Nov 2020 22:34:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338385#M58622</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-30T22:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338515#M58641</link>
      <description>&lt;P&gt;You can interactively make the change. Select the data column. Select Cols &amp;gt; Column Info. Change the Data Type to Numeric. Change the Format to the matching Date format of your character strings. You do not need a new column this way.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 14:13:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338515#M58641</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-12-01T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338524#M58647</link>
      <description>&lt;P&gt;If you use Mark's approach, you'll need to remove the extra bits first. I used a regex in the find/replace dialog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="You have to run it twice. The first time removes the day and the second the GMT." style="width: 697px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28685iA2170397651E1411/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="You have to run it twice. The first time removes the day and the second the GMT." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;You have to run it twice. The first time removes the day and the second the GMT.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The regex matches three letters followed by a comma and a space, or it matches a space followed by GMT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Change DataType *and* Format at the *same* time or you'll get missing values." style="width: 528px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28686i43247086CCFA890C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Change DataType *and* Format at the *same* time or you'll get missing values." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Change DataType *and* Format at the *same* time or you'll get missing values.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use Jim's approach, I think the 5-5-5 at the end should be 5-6-7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 15:08:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338524#M58647</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-12-01T15:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338531#M58650</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;.&amp;nbsp;Very helpful!!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 15:30:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338531#M58650</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-12-01T15:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338586#M58660</link>
      <description>&lt;P&gt;If&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;approach doesn't work, I&amp;nbsp;use this addin by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp;: &lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/Data-Table-Tools-Add-in/ta-p/28582" target="_blank" rel="noopener"&gt;Data Table Tools&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Data Table Tools &amp;gt; Special Formula Columns &amp;gt; Custom Date Formula Writer.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 19:25:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338586#M58660</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2020-12-01T19:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338587#M58661</link>
      <description>Thanks! yes, I have used that add-in and it is really helpful.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Dec 2020 19:32:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338587#M58661</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-12-01T19:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character time to numeric continuous time</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338588#M58662</link>
      <description>&lt;P&gt;This should also work (in a new column formula), since for the format you've provided, there are always 5 leading and 4 trailing characters to remove. As above, you can format as desired afterward by using the column property dialog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: In the formula below, the source column's name is C1; please change as is appropriate for your table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat( Substr( :C1, 6, Length( :C1 ) - 9 ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 20:11:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-character-time-to-numeric-continuous-time/m-p/338588#M58662</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2020-12-01T20:11:46Z</dc:date>
    </item>
  </channel>
</rss>

