<?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: Epoch time to GMT, UTC, IST in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1145882#M283301</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/194502"&gt;@binu_acs&lt;/a&gt;&amp;nbsp;, can you please help me to modify my formula to match yours?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DateTimeDiff(DateTimeAdd(DateTimeToday(),-1,'days'),'1970-01-01 05:30:00','seconds') into IST?&lt;/P&gt;&lt;P&gt;This output is in epoch/unix, which I also want, but in IST (epoch).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your Formula :&amp;nbsp;&lt;SPAN&gt;DateTimeAdd(&lt;/SPAN&gt;&lt;SPAN&gt;'1970-01-01'&lt;/SPAN&gt;&lt;SPAN&gt;,([&lt;/SPAN&gt;&lt;SPAN&gt;start&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;19800&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Seconds'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I'm trying something like this but its not working for me, surely I'm doing something wrong here.&lt;BR /&gt;DateTimeDiff(DateTimeAdd(DateTimeToday(),-1,'days'),'1970-01-01'+(19800), 'Seconds')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Jun 2023 05:56:57 GMT</pubDate>
    <dc:creator>AKPWZ</dc:creator>
    <dc:date>2023-06-09T05:56:57Z</dc:date>
    <item>
      <title>Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1137829#M281150</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Just wanted to check if we can convert epoch time into different timezones such as GMT, UTC, IST, etc.?&lt;/P&gt;&lt;P&gt;What methods or functions can be used for this conversion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:19:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1137829#M281150</guid>
      <dc:creator>AKPWZ</dc:creator>
      <dc:date>2023-05-24T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1137853#M281161</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/228251"&gt;@AKPWZ&lt;/a&gt;&amp;nbsp;The below post might be helpful for your use case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Does-Alteryx-allow-you-to-convert-Unix-Epoch-time-to-another/m-p/13432#M2462" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Does-Alteryx-allow-you-to-convert-Unix-Epoch-time-to-another/m-p/13432#M2462&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:46:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1137853#M281161</guid>
      <dc:creator>binu_acs</dc:creator>
      <dc:date>2023-05-24T14:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138122#M281269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/194502"&gt;@binu_acs&lt;/a&gt;&amp;nbsp; Thank you for passing along this link.&lt;BR /&gt;I looked but didn't find it useful since I'm seeking for something that will allow me to convert epoch unix time to GMT, IST, or any other nation time zone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 03:27:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138122#M281269</guid>
      <dc:creator>AKPWZ</dc:creator>
      <dc:date>2023-05-25T03:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138209#M281300</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/228251"&gt;@AKPWZ&lt;/a&gt;&amp;nbsp;Can you provide the sample data and expected output?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 07:37:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138209#M281300</guid>
      <dc:creator>binu_acs</dc:creator>
      <dc:date>2023-05-25T07:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138211#M281301</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/194502"&gt;@binu_acs&lt;/a&gt;&amp;nbsp;thank you for your response.&lt;BR /&gt;Sharing the details as a screenshot:&lt;/P&gt;&lt;P&gt;1. Sample Data marked with yellow color&lt;/P&gt;&lt;P&gt;2. Output marked with blue color&lt;/P&gt;&lt;P&gt;3. And the expected output marked with green color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the formula which I'm using is this: -&amp;nbsp;DateTimeAdd('1970-01-01',[date]/1000, 'Seconds')&lt;/P&gt;&lt;P&gt;But this formula giving me the output marked with blue color, but I'm expecting the output marked with green color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&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="AKPWZ_0-1685000647670.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/306463i3FE64FE81C289E4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AKPWZ_0-1685000647670.png" alt="AKPWZ_0-1685000647670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 07:53:14 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138211#M281301</guid>
      <dc:creator>AKPWZ</dc:creator>
      <dc:date>2023-05-25T07:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138222#M281304</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/228251"&gt;@AKPWZ&lt;/a&gt;&amp;nbsp;@If you add 5.30 hours to your GMT time using the DateTimeAdd() function,which is in blue you will get the result marked in green colour? Right now I’m away from my system, couldn’t provide a workflow&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:19:43 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138222#M281304</guid>
      <dc:creator>binu_acs</dc:creator>
      <dc:date>2023-05-25T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138316#M281323</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/228251"&gt;@AKPWZ&lt;/a&gt;&amp;nbsp;@The epoch time always convert into GMT, then to convert that into local time you need to add the difference between GMT and local time zone with the result. Since you are in IST time zone you need to add 5.30 hours to the result&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 10:39:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138316#M281323</guid>
      <dc:creator>binu_acs</dc:creator>
      <dc:date>2023-05-25T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138329#M281327</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/228251"&gt;@AKPWZ&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;DateTimeAdd('1970-01-01',([date]/1000)+19800, 'Seconds'), this should convert to IST format&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 10:48:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1138329#M281327</guid>
      <dc:creator>binu_acs</dc:creator>
      <dc:date>2023-05-25T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1139688#M281665</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/194502"&gt;@binu_acs&lt;/a&gt;&amp;nbsp;I will try this and let you know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 08:59:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1139688#M281665</guid>
      <dc:creator>AKPWZ</dc:creator>
      <dc:date>2023-05-29T08:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1141957#M282262</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/228251"&gt;@AKPWZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/194502"&gt;@binu_acs&lt;/a&gt;&amp;nbsp;is right - unix epoch times are just the number of seconds since a defined starting point, so you can do this with basic date-add of seconds.&lt;/P&gt;
&lt;P&gt;However - I would not recommend doing regular old addition of a fixed time difference to change timezones - because from one week to the next the timezone difference between GMT; EST; IST changes (daylight savings etc).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for this - I'd lean on a Python library to make sure you get this right.&amp;nbsp; &amp;nbsp; &amp;nbsp;Which python library I hear you ask - well I asked Chat GPT:&lt;A href="https://chat.openai.com/" target="_blank"&gt;https://chat.openai.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; python to change timezone on a date-time to various other timezones - e.g. from GMT to IST; or GMT to EST&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Answer:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To change the timezone of a datetime object in Python, you can use the `pytz` library. Here's an example of how to convert a datetime from one timezone to another:&lt;/P&gt;
&lt;P&gt;```python&lt;BR /&gt;from datetime import datetime&lt;BR /&gt;import pytz&lt;/P&gt;
&lt;P&gt;# Create a datetime object with the original timezone&lt;BR /&gt;original_datetime = datetime.now(pytz.timezone('GMT'))&lt;/P&gt;
&lt;P&gt;# Convert the datetime to another timezone&lt;BR /&gt;new_timezone = pytz.timezone('IST') # Replace 'IST' with your desired timezone&lt;BR /&gt;converted_datetime = original_datetime.astimezone(new_timezone)&lt;/P&gt;
&lt;P&gt;# Print the converted datetime&lt;BR /&gt;print(converted_datetime)&lt;BR /&gt;```&lt;/P&gt;
&lt;P&gt;In the example above, the original datetime is created using the GMT timezone. You can replace `'GMT'` with any other valid timezone name, such as `'EST'` for Eastern Standard Time. Similarly, you can replace `'IST'` with the desired timezone, such as `'EST'` for Eastern Standard Time or any other timezone supported by the `pytz` library.&lt;/P&gt;
&lt;P&gt;Note: Make sure you have the `pytz` library installed. You can install it using `pip install pytz`.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 23:47:06 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1141957#M282262</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2023-06-01T23:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1142981#M282520</link>
      <description>&lt;P&gt;Wow&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/4534"&gt;@SeanAdams&lt;/a&gt;&amp;nbsp;thank you so much. A big help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 04:18:48 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1142981#M282520</guid>
      <dc:creator>AKPWZ</dc:creator>
      <dc:date>2023-06-05T04:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1145882#M283301</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/194502"&gt;@binu_acs&lt;/a&gt;&amp;nbsp;, can you please help me to modify my formula to match yours?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DateTimeDiff(DateTimeAdd(DateTimeToday(),-1,'days'),'1970-01-01 05:30:00','seconds') into IST?&lt;/P&gt;&lt;P&gt;This output is in epoch/unix, which I also want, but in IST (epoch).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your Formula :&amp;nbsp;&lt;SPAN&gt;DateTimeAdd(&lt;/SPAN&gt;&lt;SPAN&gt;'1970-01-01'&lt;/SPAN&gt;&lt;SPAN&gt;,([&lt;/SPAN&gt;&lt;SPAN&gt;start&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;19800&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Seconds'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I'm trying something like this but its not working for me, surely I'm doing something wrong here.&lt;BR /&gt;DateTimeDiff(DateTimeAdd(DateTimeToday(),-1,'days'),'1970-01-01'+(19800), 'Seconds')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jun 2023 05:56:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1145882#M283301</guid>
      <dc:creator>AKPWZ</dc:creator>
      <dc:date>2023-06-09T05:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1145933#M283321</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/228251"&gt;@AKPWZ&lt;/a&gt;&amp;nbsp; using this formula&amp;nbsp;&lt;SPAN&gt;DateTimeDiff(DateTimeAdd(DateTimeToday(),-1,'days'),'1970-01-01 05:30:00','seconds') into IST what would be the expected result or can you explain to me the actual output you are looking for, so that i can update the formula&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 09:11:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1145933#M283321</guid>
      <dc:creator>binu_acs</dc:creator>
      <dc:date>2023-06-09T09:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time to GMT, UTC, IST</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1149014#M284089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/194502"&gt;@binu_acs&lt;/a&gt;&amp;nbsp;thank you.&lt;BR /&gt;Yes, I have tried it myself and it worked, but I was wondering if I could use your formula instead of&amp;nbsp; DateTimeDiff(DateTimeAdd(DateTimeToday(),-1,'days'),'1970-01-01 05:30:00','seconds'). to get the same result.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 04:13:37 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Epoch-time-to-GMT-UTC-IST/m-p/1149014#M284089</guid>
      <dc:creator>AKPWZ</dc:creator>
      <dc:date>2023-06-15T04:13:37Z</dc:date>
    </item>
  </channel>
</rss>

