<?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 date and time in UTC to EST? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204878#M40448</link>
    <description>&lt;P&gt;You sample time does not have UTC identifier, so if you are seeing timezone in search in UTC that implies your Splunk server is running at UTC time or else your logged in User Account is set to UTC.&lt;/P&gt;

&lt;P&gt;If you change logged in User Account settings to EST you will see FormatTime in EST while the TimeZone time is in GMT. Can you please run the following search in your Splunk Search and confirm the results for TimeZone and FormatTime?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval Time="20161222091100" 
| eval TimeZone=Time+" GMT"
| eval FormatTime=strftime(strptime(TimeZone,"%Y%m%d%H%M%S %Z"),"%Y/%m/%d %H:%M:%S %Z")
| table TimeZone FormatTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Jan 2017 09:19:41 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-01-04T09:19:41Z</dc:date>
    <item>
      <title>How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204873#M40443</link>
      <description>&lt;P&gt;How to convert the DateTime in UTC to EST? I have the time value as 20161221211100.&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204873#M40443</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2016-12-21T21:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204874#M40444</link>
      <description>&lt;P&gt;Are you trying to display the timestamp from UTC to EST in the Splunk Web interface when a user performs a search? If so, you can adjust the timezone setting for a user's search results by adjusting their user settings. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Applytimezoneoffsetstotimestamps#Set_the_time_zone_for_a_user.27s_search_results"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Applytimezoneoffsetstotimestamps#Set_the_time_zone_for_a_user.27s_search_results&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 08:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204874#M40444</guid>
      <dc:creator>nkwong_splunk</dc:creator>
      <dc:date>2016-12-22T08:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204875#M40445</link>
      <description>&lt;P&gt;No, I want to convert a field value logged as UTC to EST. For example following is the log information:&lt;/P&gt;

&lt;P&gt;Time: 12/22/16 5:42:00.000 PM&lt;BR /&gt;
Last_accessed_at: 20161222221600 ( I want to convert to EST)&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204875#M40445</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2020-09-29T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204876#M40446</link>
      <description>&lt;P&gt;You can try strptime time specifiers and add a timezone (%z is for timezone as HourMinute format HHMM for example -0500 is for US Eastern Standard Time and %Z for timezone acronym for example EST is for US Eastern Standard Time.). However final result displayed will be based on Splunk Server time or User Settings. So if that suffices your need, instead of changing the timezone of the extracted field, you can modify the same through Logged in user's &lt;STRONG&gt;Account Settings&lt;/STRONG&gt; in Splunk.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Option 1&lt;/STRONG&gt;&lt;BR /&gt;
| makeresults | eval Time="20161222221600" | eval TimeZone=Time+" -500"| eval FormatTime=strftime(strptime(TimeZone,"%Y%m%d%H%M%S %z"),"%Y/%m/%d %H:%M:%S %z") | &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Option 2&lt;/STRONG&gt;&lt;BR /&gt;
| makeresults | eval Time="20161222221600" | eval TimeZone=Time+" -EST"| eval FormatTime=strftime(strptime(TimeZone,"%Y%m%d%H%M%S %Z"),"%Y/%m/%d %H:%M:%S %Z") | &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Option 3&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;Account Settings&lt;/STRONG&gt; in Splunk to change &lt;STRONG&gt;Global Timezone&lt;/STRONG&gt; to &lt;STRONG&gt;EST&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 17:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204876#M40446</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-23T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204877#M40447</link>
      <description>&lt;P&gt;No, I want to convert a field value logged as UTC to EST at search time. For example following is the log information:&lt;/P&gt;

&lt;P&gt;Time: 12/22/16 5:42:00.000 PM&lt;BR /&gt;
Last_accessed_at: 20161222221600 ( I want to convert to EST)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204877#M40447</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2020-09-29T12:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204878#M40448</link>
      <description>&lt;P&gt;You sample time does not have UTC identifier, so if you are seeing timezone in search in UTC that implies your Splunk server is running at UTC time or else your logged in User Account is set to UTC.&lt;/P&gt;

&lt;P&gt;If you change logged in User Account settings to EST you will see FormatTime in EST while the TimeZone time is in GMT. Can you please run the following search in your Splunk Search and confirm the results for TimeZone and FormatTime?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval Time="20161222091100" 
| eval TimeZone=Time+" GMT"
| eval FormatTime=strftime(strptime(TimeZone,"%Y%m%d%H%M%S %Z"),"%Y/%m/%d %H:%M:%S %Z")
| table TimeZone FormatTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 09:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204878#M40448</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-01-04T09:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204879#M40449</link>
      <description>&lt;P&gt;FormatTime - 2016/12/22 04:11:00 EST&lt;BR /&gt;
TimeZone - 20161222091100 GMT&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204879#M40449</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2017-01-04T20:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204880#M40450</link>
      <description>&lt;P&gt;Is this not what you want? 09:11:00 GMT converted to 04:11:00 EST?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204880#M40450</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-01-04T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204881#M40451</link>
      <description>&lt;P&gt;Exactly! Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 14:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/204881#M40451</guid>
      <dc:creator>nravichandran</dc:creator>
      <dc:date>2017-01-05T14:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date and time in UTC to EST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/507094#M86291</link>
      <description>&lt;P&gt;I tried this but seems this is not working.&lt;/P&gt;&lt;P&gt;I want to convert BST to EST please.&lt;/P&gt;&lt;P&gt;| eval BST=strftime(TransactTime/1000000000, "%d/%m/%y %H:%M:%S %Z" )&lt;BR /&gt;| eval TimeZone=BST+" -EST"&lt;BR /&gt;| eval ET=strftime(strptime(TimeZone,"%d/%m/%y %H:%M:%S %Z"),"%d/%m/%y %H:%M:%S %Z")&lt;BR /&gt;| table BST, ET&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-date-and-time-in-UTC-to-EST/m-p/507094#M86291</guid>
      <dc:creator>Vidi</dc:creator>
      <dc:date>2020-07-02T14:23:48Z</dc:date>
    </item>
  </channel>
</rss>

