<?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: Convert GMT to CST timezone in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669533#M112257</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; can you give me one example on how to convert that&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 06:42:22 GMT</pubDate>
    <dc:creator>ravir_jbp</dc:creator>
    <dc:date>2023-11-23T06:42:22Z</dc:date>
    <item>
      <title>Convert GMT to CST timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669456#M112251</link>
      <description>&lt;P&gt;I am trying to conver the GMT time to CST time. I am able to get the desire data using below query. Now I am looking for query to convert GMT time to CST.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=test AcdId="*" AgentId="*" AgentLogon="*" chg="*" seqTimestamp"*" currStateStart="*" currActCodeOid="*" currActStart="*" schedActCodeOid="*" schedActStart="*" nextActCodeOid="*" nextActStart="*" schedDate="*" adherenceStart="*" acdtimediff="*"&lt;BR /&gt;| eval seqTimestamp=replace(seqTimestamp,"^(.+)T(.+)Z$","\1 \2")&lt;BR /&gt;| eval currStateStart=replace(currStateStart,"^(.+)T(.+)Z$","\1 \2")&lt;BR /&gt;| eval currActStart=replace(currActStart,"^(.+)T(.+)Z$","\1 \2")&lt;BR /&gt;| eval schedActStart=replace(schedActStart,"^(.+)T(.+)Z$","\1 \2")&lt;BR /&gt;| eval nextActStart=replace(nextActStart,"^(.+)T(.+)Z$","\1 \2")&lt;BR /&gt;| eval adherenceStart=replace(adherenceStart,"^(.+)T(.+)Z$","\1 \2")&lt;BR /&gt;| table AcdId, AgentId, AgentLogon, chg, seqTimestamp,seqTimestamp1, currStateStart, currActCodeOid, currActStart, schedActCodeOid, schedActStart, nextActCodeOid, nextActStart, schedDate, adherenceStart, acdtimediff&lt;/P&gt;&lt;P&gt;Below are the results I am getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.JPG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28212iC5F5E5D07A1B0EFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.JPG" alt="image.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 11:44:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669456#M112251</guid>
      <dc:creator>ravir_jbp</dc:creator>
      <dc:date>2023-11-22T11:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert GMT to CST timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669460#M112252</link>
      <description>&lt;P&gt;You need to add (or subtract) the timezone offset from the times. To do this, you&amp;nbsp; should parse the time strings to epoch datetimes with strptime(), change the time appropriately, and then reformat them with strftime().&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 12:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669460#M112252</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-22T12:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert GMT to CST timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669533#M112257</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; can you give me one example on how to convert that&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 06:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669533#M112257</guid>
      <dc:creator>ravir_jbp</dc:creator>
      <dc:date>2023-11-23T06:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert GMT to CST timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669539#M112258</link>
      <description>&lt;P&gt;To add to &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; 's answer - Splunk processes timestamp as "unix timestamps" - integers containing number of seconds since epoch. As such, timestamp is "timezoneless", it's just rendered when needed into a string, possibly containing a timezone description. But timestamp is always (when rendered automatically by WebUI or explicitly when strftime is called) rendered in user's timezone (the one set in user's preferences).&lt;/P&gt;&lt;P&gt;So while with strptime you can read and apply the timezone offset from the string representation of a given point in time, strftime doesn't let you specify the timezone freely.&lt;/P&gt;&lt;P&gt;The only thing you can do is "cheat" a bit by manually adjusting the timezone with the offset to another timezone and render it in your local timezone but without displaying said timezone.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 07:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669539#M112258</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-11-23T07:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert GMT to CST timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669550#M112259</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval curActStart=strftime(strptime(curActStart,"%F %T.%S")+(60*60*5)+(60*30),"%F %T.%S")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Nov 2023 09:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-GMT-to-CST-timezone/m-p/669550#M112259</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-23T09:08:11Z</dc:date>
    </item>
  </channel>
</rss>

