<?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: How to convert UTC timestamp to local time in a column formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911004#M107022</link>
    <description>&lt;P&gt;Is this an option?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimeAdd_2025-11-03 13_22_07-Time Plus - JMP [2].png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/86259i38E814A6E03787A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimeAdd_2025-11-03 13_22_07-Time Plus - JMP [2].png" alt="TimeAdd_2025-11-03 13_22_07-Time Plus - JMP [2].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt; &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "Time Plus",
Numeric,
"Continuous",
Format( "yyyy-mm-ddThh:mm:ss", 19, 0 ),
Input Format( "yyyy-mm-ddThh:mm:ss", 0 ),
Formula( :Timestamp + In Hours( 5.5 ) ),
Set Selected
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Nov 2025 12:27:13 GMT</pubDate>
    <dc:creator>mlo1</dc:creator>
    <dc:date>2025-11-03T12:27:13Z</dc:date>
    <item>
      <title>How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/910968#M107019</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a column &lt;CODE&gt;Timestamp UTC&lt;/CODE&gt; in JMP with values like &lt;CODE&gt;2025-10-31T08:30:00&lt;/CODE&gt;.&lt;BR /&gt;I want to create a new column &lt;CODE&gt;Timestamp Local&lt;/CODE&gt; that converts this UTC time to local time&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is there a simple formula-based way to add 5.5 hours to my timestamp directly in a &lt;STRONG&gt;column formula&lt;/STRONG&gt;, without scripting or using &lt;CODE&gt;Date Add&lt;/CODE&gt;?&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-jsl"&gt;Informat(:Timestamp UTC, "yyyy-mm-ddThh:mm:ss") + (4 * 3600)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;but I’m not sure if this is the right syntax as it doesn't yield result nor formula evaluation errors&lt;/P&gt;
&lt;P&gt;I also tried based on a discussion thread:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat(:Timestamp UTC, "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;hh24&amp;gt;&amp;lt;::&amp;gt;&amp;lt;mm&amp;gt;&amp;lt;::&amp;gt;&amp;lt;ss&amp;gt;Z") + (4 * 3600)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;- No result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Formula looks like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also tried Format -&amp;nbsp;&lt;CODE class="language-jsl"&gt;"yyyy-mm-ddThh:mm:ss"&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_name_list = Current Data Table() &amp;lt;&amp;lt; get column names( string );

If(
	!Contains(col_name_list, "Timestamp Local"),
	Current Data Table() &amp;lt;&amp;lt; New Column(
		"Timestamp Local",
		Numeric,
		Continuous,
		Format("m/d/y h:m:s"),
		Formula(
			Informat(:Name("Timestamp UTC"),
			//"Format Pattern",
			"yyyy-mm-ddThh:mm:ss") + (4* 3600)
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Would appreciate any guidance or examples on how to handle UTC to local conversions cleanly within column formulas.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 09:17:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/910968#M107019</guid>
      <dc:creator>zetaVagabond1</dc:creator>
      <dc:date>2025-11-03T09:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911004#M107022</link>
      <description>&lt;P&gt;Is this an option?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimeAdd_2025-11-03 13_22_07-Time Plus - JMP [2].png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/86259i38E814A6E03787A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimeAdd_2025-11-03 13_22_07-Time Plus - JMP [2].png" alt="TimeAdd_2025-11-03 13_22_07-Time Plus - JMP [2].png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt; &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "Time Plus",
Numeric,
"Continuous",
Format( "yyyy-mm-ddThh:mm:ss", 19, 0 ),
Input Format( "yyyy-mm-ddThh:mm:ss", 0 ),
Formula( :Timestamp + In Hours( 5.5 ) ),
Set Selected
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Nov 2025 12:27:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911004#M107022</guid>
      <dc:creator>mlo1</dc:creator>
      <dc:date>2025-11-03T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911007#M107023</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Untitled",
	Add Rows( 2 ),
	New Column( "old", Character, "Nominal", Set Values( {"2025-10-31T08:30:00", "2025-10-31T08:30:01"} ), Set Display Width( 153 ) ),
	New Column( "new",
		Numeric,
		"Continuous",
		Format( "Monddyyyy h:m:s", 22, 0 ),
		Input Format( "Monddyyyy h:m:s", 0 ),
		Formula( Informat( :old, "yyyy-mm-ddThh:mm:ss" ) + In Hours( 5.5 ) )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Craige_Hales_1-1762173035574.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/86261iB6E580B79A4EDF30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Craige_Hales_1-1762173035574.png" alt="Craige_Hales_1-1762173035574.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;JMP stores date-time values as numeric seconds since 1904. The InHours function returns 3600 * the argument. I'm assuming you've got character data in the Timestamp column (old, in my example.)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 12:34:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911007#M107023</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2025-11-03T12:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911143#M107037</link>
      <description>&lt;P&gt;I should have added this for reference.&lt;/P&gt;
&lt;P&gt;Since, this is from raw data - modeling ttype - continuous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format defined&amp;nbsp; as:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;		Format("m/d/y h:m:s")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Nov 2025 02:50:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911143#M107037</guid>
      <dc:creator>zetaVagabond1</dc:creator>
      <dc:date>2025-11-04T02:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911144#M107038</link>
      <description>&lt;P&gt;I should have added this for reference.&lt;/P&gt;
&lt;P&gt;Since, this is from raw data - modeling ttype - continuous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format defined&amp;nbsp; as:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;		Format("m/d/y h:m:s")&lt;BR /&gt;&lt;BR /&gt;I&amp;nbsp;tried&amp;nbsp;the&amp;nbsp;formula&amp;nbsp;above,&amp;nbsp;it&amp;nbsp;didn't&amp;nbsp;yeild&amp;nbsp;any&amp;nbsp;output.&amp;nbsp;I&amp;nbsp;will&amp;nbsp;check&amp;nbsp;again.&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 02:51:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911144#M107038</guid>
      <dc:creator>zetaVagabond1</dc:creator>
      <dc:date>2025-11-04T02:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911149#M107039</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8417"&gt;@mlo1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This has worked.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_name_list = Current Data Table() &amp;lt;&amp;lt; get column names( string );
If( !Contains( col_name_list, "Timestamp Local" ),      //If the column name doesn't exist in the array col_name_list
	Current Data Table() &amp;lt;&amp;lt; New Column(
	"Timestamp Local",
	Numeric,
	"Continuous",
	Format( "m/d/y h:m:s", 22, 0),
	//Input Format( "Monddyyyy h:m:s", 0  ),
	Formula( 
	//In Format( :Timestamp UTC, "yyyy-mm-ddThh:mm:ss" ) + In Hours( 5.5 ) 
	Informat( Substitute(:Timestamp UTC, "+00:00", ""), "yyyy-mm-dd hh:mm:ss" ) + In Hours(5.5)	
	),
	//Formula( :Timestamp + In Hours( 5.5 ) ),
	//Set Selected
		)
);&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;TABLE style="width: 50%;" border="1" width="50%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="36.27049180327869%" height="39px"&gt;
&lt;P&gt;TIme UTC&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="63.72950819672131%" height="39px"&gt;Time Local&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="36.27049180327869%" height="41px"&gt;2025-09-14 07:51:52+00:00&amp;nbsp;&lt;/TD&gt;
&lt;TD width="63.72950819672131%" height="41px"&gt;09/14/2025 1:21:52 PM&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="36.27049180327869%" height="29px"&gt;2025-09-14 07:56:52+00:00&lt;/TD&gt;
&lt;TD width="63.72950819672131%" height="29px"&gt;09/14/2025 1:26:52 PM&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 03:25:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911149#M107039</guid>
      <dc:creator>zetaVagabond1</dc:creator>
      <dc:date>2025-11-04T03:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911155#M107041</link>
      <description>&lt;P&gt;However, this formula doesn't work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(!Contains(col_name_list, "Max Timestamp UTC"),
	Current Data Table() &amp;lt;&amp;lt; New Column(
		"Max Timestamp UTC",
		Numeric,
		Continuous,
		Format("m/d/y h:m:s", 22, 0),
		Formula(
			Col Maximum(
				:Name("Timestamp UTC"),
				/*Informat(
					Substitute(:Name("Timestamp UTC"), "+00:00", ""),
					"yyyy-mm-dd hh:mm:ss"
				),*/
				:Name("ID")
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The as is version, commented part of the code seems to take longer goes into an infinite loop as it causes my JMP to not respond and I have to kill the application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have done this earlier but local time stamp is generated&amp;nbsp; without using below code.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Name("Timestamp UTC") &amp;lt;&amp;lt; Data Type(Character) &amp;lt;&amp;lt; Modeling Type(Nominal);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Nov 2025 05:58:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911155#M107041</guid>
      <dc:creator>zetaVagabond1</dc:creator>
      <dc:date>2025-11-04T05:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911278#M107061</link>
      <description>&lt;P&gt;Which JMP version are you using? If you are having some issues with the speed with Col Max I would first create separate column with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat(Substitute(:"Timestamp UTC"n, "+00:00", ""), "yyyy-mm-dd hh:mm:ss")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then use that newly created column as by variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 18:25:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911278#M107061</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-04T18:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911361#M107075</link>
      <description>&lt;P&gt;Yes, I had tried that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:Name( "Timestamp UTC" ) &amp;lt;&amp;lt; Informat(
	Substitute( :Timestamp UTC, "+00:00", "" ),
	"yyyy-mm-dd hh:mm:ss"
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:Name( "Timestamp UTC" ) &amp;lt;&amp;lt; Data Type( Character ) &amp;lt;&amp;lt; Modeling Type( Nominal );

col_name_list = Current Data Table() &amp;lt;&amp;lt; get column names ( string );
If( !Contains(col_name_list, "Timestamp UTC (Numeric)"),
	Current Data Table() &amp;lt;&amp;lt; New Column(
    "Timestamp UTC (Numeric)",
    Numeric,
    "Continuous",
    Format("m/d/y h:m:s", 22, 0),
    Formula(
        Informat( Substitute(:Timestamp UTC, "+00:00", ""), "yyyy-mm-dd hh:mm:ss" )
    )
)
);

dt:Name("Timestamp UTC (Numeric)") &amp;lt;&amp;lt; Delete Formula;
dt:Name("Timestamp UTC") &amp;lt;&amp;lt;
	Set Values(:Name("Timestamp UTC (Numeric)")) &amp;lt;&amp;lt;
	Data Type(Numeric) &amp;lt;&amp;lt;
	Format("m/d/y h:m:s", 22, 0);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying this. It's overwriting my timestamp utc column and no values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 03:36:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911361#M107075</guid>
      <dc:creator>zetaVagabond1</dc:creator>
      <dc:date>2025-11-05T03:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911375#M107077</link>
      <description>&lt;P&gt;Can you provide example of the table you are using? Just the timestamp columns should be enough (also remember to drop table variables/scripts).&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 05:44:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/911375#M107077</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-05T05:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert UTC timestamp to local time in a column formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/912355#M107200</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Refer this solution. I found it hassle free to create an extra column and use that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 05:30:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-UTC-timestamp-to-local-time-in-a-column-formula/m-p/912355#M107200</guid>
      <dc:creator>zetaVagabond1</dc:creator>
      <dc:date>2025-11-10T05:30:45Z</dc:date>
    </item>
  </channel>
</rss>

