<?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: Time zone in timestamp? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129413#M603605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Ellen,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Please try floor function for your first question, also see if below thread -&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/252288"&gt;https://community.qlik.com/thread/252288&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Regards,&lt;/P&gt;&lt;P class=""&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Sep 2018 02:47:22 GMT</pubDate>
    <dc:creator>thakkarrahul01</dc:creator>
    <dc:date>2018-09-15T02:47:22Z</dc:date>
    <item>
      <title>Time zone in timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129412#M603603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I give up. I've searched and attempted many different options for resolving my date/timestamp issue without success. I have the following value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #339966;"&gt;2018-08-31&lt;/SPAN&gt;T19:14:&lt;SPAN style="color: #ff00ff;"&gt;48&lt;/SPAN&gt;.651-05:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon extracting the date value, no matter what syntax I have employed (including the Date, Date#, Timestamp, Floor, etc. functions in various syntax positions), the &lt;STRONG&gt;date is returned as Sep 1 instead of Aug 31&lt;/STRONG&gt;. What I know about this field is that it is supposed to contain the date and time CST. I would greatly appreciate assistance with the following questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1. How best can I most efficiently extract the date &lt;SPAN style="color: #339966;"&gt;08/31/2018&lt;/SPAN&gt; as [Trans Date]?&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2. How best can I most efficiently extract the seconds, &lt;SPAN style="color: #ff00ff;"&gt;48&lt;/SPAN&gt;, as [Trans Seconds]?&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;As always, I appreciate your assistance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 23:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129412#M603603</guid>
      <dc:creator>ellenblackwell</dc:creator>
      <dc:date>2018-09-14T23:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone in timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129413#M603605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Ellen,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Please try floor function for your first question, also see if below thread -&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/252288"&gt;https://community.qlik.com/thread/252288&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Regards,&lt;/P&gt;&lt;P class=""&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 02:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129413#M603605</guid>
      <dc:creator>thakkarrahul01</dc:creator>
      <dc:date>2018-09-15T02:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone in timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129414#M603606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Thakkar. I previously tried the FLOOR function and read the referenced thread. I've narrowed down the issue to this part of the format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;2018-08-31&lt;/SPAN&gt;T19:14:&lt;SPAN style="color: #ff00ff;"&gt;48 &lt;/SPAN&gt;[.651-05:00]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my SET TimeStampFormat statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt; .fff &lt;/STRONG&gt; ties to the number&lt;STRONG&gt; 651 &lt;/STRONG&gt; (although, I do not know what that number represents)&lt;/LI&gt;&lt;LI&gt; I do not know how to account for the -05:00 in TimeStampFormat syntax, but it appears to be &lt;EM&gt;adding&lt;/EM&gt; 5 hours to the base date/time field.&lt;UL&gt;&lt;LI&gt;So, 8/31/18 at 7:14p and 48 seconds is becoming 9/1/18 at 12:48a and 48 seconds&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how to ignore the -05:00 in the field or subtract 5 hours from the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 03:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129414#M603606</guid>
      <dc:creator>ellenblackwell</dc:creator>
      <dc:date>2018-09-15T03:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone in timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129415#M603607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;The number 651 represents fractional seconds. And to get the correct date can you try to use function&amp;nbsp;&lt;SPAN style="font-weight: bold; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;ConvertToLocalTime &lt;/SPAN&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;and apply floor function on top of it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;More details -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/converttolocaltime.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/converttolocaltime.htm&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://apex.oracle.com/pls/apex//apexcommunity/tipp/6381/index-en.html"&gt;https://apex.oracle.com/pls/apex//apexcommunity/tipp/6381/index-en.html&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Regards,&lt;/P&gt;&lt;P class=""&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 04:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129415#M603607</guid>
      <dc:creator>thakkarrahul01</dc:creator>
      <dc:date>2018-09-15T04:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Time zone in timestamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129416#M603608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a time offset is detected, the resulting time is UTC time. &lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2016/06/qv12-timestamp-parsing/" title="http://qlikviewcookbook.com/2016/06/qv12-timestamp-parsing/"&gt;http://qlikviewcookbook.com/2016/06/qv12-timestamp-parsing/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, the 5 hours are added to derive UTC time which makes it the next day.&amp;nbsp; You can convert using the ConvertTolocalTime() function as Rahul suggested.&amp;nbsp; Or if you really only want the date portion, use just the date portion of the string when you load it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(left(myfield, 10), 'YYYY-MM-DD')) as TranDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 21:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-zone-in-timestamp/m-p/129416#M603608</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-15T21:59:15Z</dc:date>
    </item>
  </channel>
</rss>

