<?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: Datetime format confusion (looking for equivalent of python's datetime.strptime) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Datetime-format-confusion-looking-for-equivalent-of-python-s/m-p/846982#M102174</link>
    <description>&lt;P&gt;JMP has a built in format for this time structure.&amp;nbsp; Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;informat(:timeEcol,"yyyy-mm-ddThh:mm:ss")&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Mar 2025 16:23:19 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-03-10T16:23:19Z</dc:date>
    <item>
      <title>Datetime format confusion (looking for equivalent of python's datetime.strptime)</title>
      <link>https://community.jmp.com/t5/Discussions/Datetime-format-confusion-looking-for-equivalent-of-python-s/m-p/846961#M102171</link>
      <description>&lt;P&gt;I'm sure this has been asked many times, but I did not find a good solution.&lt;/P&gt;&lt;P&gt;I have a column (let's call it time_col) with a timestamp in the format 2024-06-28T13:47:03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the documentation I figured I should use Format, something like:&lt;/P&gt;&lt;P&gt;Format(:time_col, "Format Pattern", "&amp;lt;YYYY&amp;gt;&amp;lt;-&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;-&amp;gt;&amp;lt;DD&amp;gt;&amp;lt;T&amp;gt;&amp;lt;hh&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;" )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not give any result.&lt;/P&gt;&lt;P&gt;In python it would be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;datestr = '2024-06-28T13:47:03'
datetime_object = dt.strptime(datestr, '%Y-%m-%dT%H:%M:%S')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hope someone can help me out&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:04:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Datetime-format-confusion-looking-for-equivalent-of-python-s/m-p/846961#M102171</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2025-03-10T16:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format confusion (looking for equivalent of python's datetime.strptime)</title>
      <link>https://community.jmp.com/t5/Discussions/Datetime-format-confusion-looking-for-equivalent-of-python-s/m-p/846981#M102173</link>
      <description>&lt;P&gt;I see now that this format is actually supported by JMP. I didn't find it because I was looking for a date format while my data type was set to "character" instead of "numeric".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose my question is still valid for other string formats though.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:18:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Datetime-format-confusion-looking-for-equivalent-of-python-s/m-p/846981#M102173</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2025-03-10T16:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime format confusion (looking for equivalent of python's datetime.strptime)</title>
      <link>https://community.jmp.com/t5/Discussions/Datetime-format-confusion-looking-for-equivalent-of-python-s/m-p/846982#M102174</link>
      <description>&lt;P&gt;JMP has a built in format for this time structure.&amp;nbsp; Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;informat(:timeEcol,"yyyy-mm-ddThh:mm:ss")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:23:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Datetime-format-confusion-looking-for-equivalent-of-python-s/m-p/846982#M102174</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-03-10T16:23:19Z</dc:date>
    </item>
  </channel>
</rss>

