<?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 about cal datetime.. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792834#M97073</link>
    <description>hello.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;col1 : 2024-07-12 14:21:33&lt;BR /&gt;col2 : 333&lt;BR /&gt;cal_col3 : 2024-07-12 19:54:33&lt;BR /&gt;&lt;BR /&gt;“How can I calculate the date and time in Col3 by adding the minutes specified in Col2 to the date and time in Col1 in JMP?&lt;BR /&gt;&lt;BR /&gt;For example, if Col1 contains 2024-02-01 14:21:33 and Col2 contains 333, I want Col3 to show 2024-02-01 19:54:33</description>
    <pubDate>Sun, 01 Sep 2024 01:05:24 GMT</pubDate>
    <dc:creator>Ronaldo</dc:creator>
    <dc:date>2024-09-01T01:05:24Z</dc:date>
    <item>
      <title>about cal datetime..</title>
      <link>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792834#M97073</link>
      <description>hello.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;col1 : 2024-07-12 14:21:33&lt;BR /&gt;col2 : 333&lt;BR /&gt;cal_col3 : 2024-07-12 19:54:33&lt;BR /&gt;&lt;BR /&gt;“How can I calculate the date and time in Col3 by adding the minutes specified in Col2 to the date and time in Col1 in JMP?&lt;BR /&gt;&lt;BR /&gt;For example, if Col1 contains 2024-02-01 14:21:33 and Col2 contains 333, I want Col3 to show 2024-02-01 19:54:33</description>
      <pubDate>Sun, 01 Sep 2024 01:05:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792834#M97073</guid>
      <dc:creator>Ronaldo</dc:creator>
      <dc:date>2024-09-01T01:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: about cal datetime..</title>
      <link>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792846#M97074</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can use the "Date Increment" function to calculate what you need (see below)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Date Increment( :Col1, "Minute", :Col2)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 01:19:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792846#M97074</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2024-09-01T01:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: about cal datetime..</title>
      <link>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792859#M97075</link>
      <description>&lt;P&gt;If your col1 is a character column and not a JMP numeric DateTime column you will need to use this formula for the calculation&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Date Increment(
	Informat( :col1, 
		"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;hh&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;:&amp;gt;&amp;lt;ss&amp;gt;" ),
	"Minute",
	:col2
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Sep 2024 02:06:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792859#M97075</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-09-01T02:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: about cal datetime..</title>
      <link>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792933#M97076</link>
      <description>thank you!! u r my teacher~!</description>
      <pubDate>Sun, 01 Sep 2024 06:54:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/792933#M97076</guid>
      <dc:creator>Ronaldo</dc:creator>
      <dc:date>2024-09-01T06:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: about cal datetime..</title>
      <link>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/793218#M97080</link>
      <description>&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/date-and-time-functions.shtml?os=win&amp;amp;source=application#ww2538996" target="_blank" rel="noopener"&gt;Date Increment()&lt;/A&gt; which was suggested is the best option. Only thing you have to remember with that is to use alignment "actual" (it default to start) IF you care about the seconds. If you leave it as default (start), it will remove seconds. You can compare these two formulas&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Date Increment( :Col1, "Minute", :Col2)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Date Increment( :Col1, "Minute", :Col2, "actual")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1725204132184.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67776iE01B41C96895FA1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1725204132184.png" alt="jthi_0-1725204132184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other option is to add the minutes as seconds to your date (you can use &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/date-and-time-functions.shtml?os=win&amp;amp;source=application#ww3227074" target="_self"&gt;In Minutes()&lt;/A&gt; to perform the conversion or multiply by 60)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Col1 + In Minutes(:Col2)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 15:22:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/793218#M97080</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-01T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: about cal datetime..</title>
      <link>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/793239#M97082</link>
      <description>&lt;P&gt;And to fully complete the discussion, one can take the issue down to the basics and just multiply the number of seconds in a minute times the number of minutes to achieve the desired result.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Col1 + :Col2 * 60&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Sep 2024 16:04:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/about-cal-datetime/m-p/793239#M97082</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-09-01T16:04:39Z</dc:date>
    </item>
  </channel>
</rss>

