<?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: Unix Timestamp issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845346#M296833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IIRC Unix timestamps are measured in seconds since epoch. QlikView uses Excel-timestamps, meaning that the fraction is the time value (0.25 = 1/4 of a day = 6 hours) and the integer part is the number of days since ...(I don't remember)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to divide the Unix timestamp by 86400 to get to the Excel-timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2015 09:28:41 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-06-08T09:28:41Z</dc:date>
    <item>
      <title>Unix Timestamp issue</title>
      <link>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845345#M296832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;QV is connected with ServiceNow (MySql database) via ODBC connector&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is some issue with timestamp conversion from ServiceNow into QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example. &lt;/P&gt;&lt;P&gt;Row data fetched from My_sql into QVD file.&lt;/P&gt;&lt;P&gt;Field: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;sla_duration&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;25569.25&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the unix format so all is mesuered from 01/01/1970 00:00:00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25569.25&amp;nbsp; ===&amp;gt; [DD:hh:mm] 00:06:00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in &lt;STRONG&gt;ServiceNow&lt;/STRONG&gt; this value is displayed as &lt;STRONG&gt;4 hours&lt;/STRONG&gt; not 6 hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use workaround for&amp;nbsp; that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sla_duration - ('01/01/1970 00:00:00' -2/24) than I have 0.16666666666667 which I can easly convert into [DD:hh:mm] format with result 00:04:00 ===&amp;gt; 4 hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But why I have exactly&amp;nbsp; 2 hours difference between row data fetched into QVD and proper value displayed in SNC &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNC Server and QV server are exactly in the same time zone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 09:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845345#M296832</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2015-06-08T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Timestamp issue</title>
      <link>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845346#M296833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IIRC Unix timestamps are measured in seconds since epoch. QlikView uses Excel-timestamps, meaning that the fraction is the time value (0.25 = 1/4 of a day = 6 hours) and the integer part is the number of days since ...(I don't remember)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to divide the Unix timestamp by 86400 to get to the Excel-timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 09:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845346#M296833</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-06-08T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Timestamp issue</title>
      <link>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845347#M296834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably your timestamp is based on GMT. You will need to add a time offset to get local time (+2h in your case?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 09:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845347#M296834</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-08T09:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Timestamp issue</title>
      <link>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845348#M296835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that I think of it, Unix timestamps may also be specified in UTC time, depending on where they come from. The fact that both servers are located in the same timezone doesn't matter, they may still have a different base clock that is converted to local time in a different way. Most Windows servers have a base clock in local time, while Unix machines have a base clock in UTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a guess, my unix knowledge isn't as fresh as it used to be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 09:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unix-Timestamp-issue/m-p/845348#M296835</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-06-08T09:35:57Z</dc:date>
    </item>
  </channel>
</rss>

