<?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: Parsing datetime information + conversion with milliseconds in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Parsing-datetime-information-conversion-with-milliseconds/m-p/335441#M58286</link>
    <description>&lt;P&gt;if you run this script, it should fix your LogingTime data&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
For Each Row(
     :loggingTime = Substr( :loggingTime, 1, 23 );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="background-color: #f5f5f5; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px;"&gt;Formats will automatically loop through each row, but scripts require one to do the looping within the script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: #f5f5f5; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px;"&gt;Concerning your informat issue....Here is a format that if you create a new column, and specify the below as the format, it will convert your LoggingTime to a JMP date time value.&amp;nbsp; All you need to do then, is to specify the DateTime format you want to use for the displaying of the value&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;num(format(informat(date,"yyyy-mm-dd h:m:s"),"fixed dec",23,3))&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Nov 2020 03:58:03 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-11-19T03:58:03Z</dc:date>
    <item>
      <title>Parsing datetime information + conversion with milliseconds</title>
      <link>https://community.jmp.com/t5/Discussions/Parsing-datetime-information-conversion-with-milliseconds/m-p/335282#M58279</link>
      <description>&lt;P&gt;I am new to JMP and I am trying to batch process many .csv files. My first hiccup is happening when I try to pull datetime information from the first column.My data table looks like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Damian_0-1605745343072.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28445iA1181D7FE154850C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Damian_0-1605745343072.png" alt="Damian_0-1605745343072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As you can see from the picture, each row of timestamps has an unwanted "-0800" tacked on the end How would I get rid of this for each entry? The jsl syntax I used looks something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:loggingTime = Substr( :loggingTime , 1 ,&amp;nbsp; 23)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I run this, I just end up with an empty column. Lastly, I know to ultimately format the string into a datetime object I will need the "informat" command&amp;nbsp; but my question there is can I select a format that records milliseconds and that doesnt just stop at seconds? I know this is simple stuff but as I said I am new to JSL and any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 21:58:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parsing-datetime-information-conversion-with-milliseconds/m-p/335282#M58279</guid>
      <dc:creator>Damian</dc:creator>
      <dc:date>2023-06-09T21:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing datetime information + conversion with milliseconds</title>
      <link>https://community.jmp.com/t5/Discussions/Parsing-datetime-information-conversion-with-milliseconds/m-p/335441#M58286</link>
      <description>&lt;P&gt;if you run this script, it should fix your LogingTime data&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
For Each Row(
     :loggingTime = Substr( :loggingTime, 1, 23 );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="background-color: #f5f5f5; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px;"&gt;Formats will automatically loop through each row, but scripts require one to do the looping within the script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: #f5f5f5; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px;"&gt;Concerning your informat issue....Here is a format that if you create a new column, and specify the below as the format, it will convert your LoggingTime to a JMP date time value.&amp;nbsp; All you need to do then, is to specify the DateTime format you want to use for the displaying of the value&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;num(format(informat(date,"yyyy-mm-dd h:m:s"),"fixed dec",23,3))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Nov 2020 03:58:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parsing-datetime-information-conversion-with-milliseconds/m-p/335441#M58286</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-19T03:58:03Z</dc:date>
    </item>
  </channel>
</rss>

