<?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 Subtract 1 hour from 00:00 time so that the Date could also be changed in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Subtract-1-hour-from-00-00-time-so-that-the-Date-could-also-be/m-p/579859#M78713</link>
    <description>&lt;P&gt;Hello JMP community,&lt;/P&gt;&lt;P&gt;Is there any way to subtract 1 hour from 00:00 time so that the Date could also be converted to the previous data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The input table is&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Expected Output should be&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="chandankishor66_0-1670734031752.png" style="width: 256px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48149i57C77A4A85986B85/image-dimensions/256x268?v=v2" width="256" height="268" role="button" title="chandankishor66_0-1670734031752.png" alt="chandankishor66_0-1670734031752.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chandankishor66_1-1670734069822.png" style="width: 240px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48150iE562EF2683640773/image-dimensions/240x262?v=v2" width="240" height="262" role="button" title="chandankishor66_1-1670734069822.png" alt="chandankishor66_1-1670734069822.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be highly appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:04:31 GMT</pubDate>
    <dc:creator>chandankishor66</dc:creator>
    <dc:date>2023-06-09T16:04:31Z</dc:date>
    <item>
      <title>Subtract 1 hour from 00:00 time so that the Date could also be changed</title>
      <link>https://community.jmp.com/t5/Discussions/Subtract-1-hour-from-00-00-time-so-that-the-Date-could-also-be/m-p/579859#M78713</link>
      <description>&lt;P&gt;Hello JMP community,&lt;/P&gt;&lt;P&gt;Is there any way to subtract 1 hour from 00:00 time so that the Date could also be converted to the previous data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The input table is&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Expected Output should be&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="chandankishor66_0-1670734031752.png" style="width: 256px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48149i57C77A4A85986B85/image-dimensions/256x268?v=v2" width="256" height="268" role="button" title="chandankishor66_0-1670734031752.png" alt="chandankishor66_0-1670734031752.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chandankishor66_1-1670734069822.png" style="width: 240px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48150iE562EF2683640773/image-dimensions/240x262?v=v2" width="240" height="262" role="button" title="chandankishor66_1-1670734069822.png" alt="chandankishor66_1-1670734069822.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be highly appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:04:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subtract-1-hour-from-00-00-time-so-that-the-Date-could-also-be/m-p/579859#M78713</guid>
      <dc:creator>chandankishor66</dc:creator>
      <dc:date>2023-06-09T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract 1 hour from 00:00 time so that the Date could also be changed</title>
      <link>https://community.jmp.com/t5/Discussions/Subtract-1-hour-from-00-00-time-so-that-the-Date-could-also-be/m-p/579972#M78721</link>
      <description>&lt;P&gt;Here is how I would do it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1670763702979.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48155iEA3EE2C422F299C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1670763702979.png" alt="txnelson_0-1670763702979.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For Each Row(
	datetime = :date + 60 * 60 * Hour( :time ) + 60 * Minute( :time );
	datetime = datetime - In Hours( 1 );
	:new time = Hour( datetime ) * 60 * 60 + Minute( datetime ) * 60;
	:new date = Date MDY( Month( datetime ), Day( datetime ), Year( datetime ) );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 13:02:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subtract-1-hour-from-00-00-time-so-that-the-Date-could-also-be/m-p/579972#M78721</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-12-11T13:02:13Z</dc:date>
    </item>
  </channel>
</rss>

