<?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 Daylightfunction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Daylightfunction/m-p/276547#M103151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daylight Saving Time (or summertime as it is called in many countries) is a way of getting more light out of the day by advancing clocks by one hour during the summer. During Daylight Saving Time, the sun appears to rise one hour later in the morning, when people are usually asleep anyway, and sets one hour later in the evening, seeming to stretch the day longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlikview it returns the current adjustment for daylight saving time, as defined in Windows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2011 10:48:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-09T10:48:25Z</dc:date>
    <item>
      <title>Daylightfunction</title>
      <link>https://community.qlik.com/t5/QlikView/Daylightfunction/m-p/276546#M103150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does the function daylightsaving do???????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 10:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daylightfunction/m-p/276546#M103150</guid>
      <dc:creator />
      <dc:date>2011-06-09T10:16:55Z</dc:date>
    </item>
    <item>
      <title>Daylightfunction</title>
      <link>https://community.qlik.com/t5/QlikView/Daylightfunction/m-p/276547#M103151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daylight Saving Time (or summertime as it is called in many countries) is a way of getting more light out of the day by advancing clocks by one hour during the summer. During Daylight Saving Time, the sun appears to rise one hour later in the morning, when people are usually asleep anyway, and sets one hour later in the evening, seeming to stretch the day longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlikview it returns the current adjustment for daylight saving time, as defined in Windows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 10:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daylightfunction/m-p/276547#M103151</guid>
      <dc:creator />
      <dc:date>2011-06-09T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Daylightfunction</title>
      <link>https://community.qlik.com/t5/QlikView/Daylightfunction/m-p/276548#M103152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The manual it reads: returns the current adjustment for daylight saving time as defined in Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Eastern Time Zone (me) is currently in Daylight Savings Time so my system returns 1 hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load below, loadtime has DST hour figured in.&amp;nbsp; The columns adding and subtracting DST would be an hour before and after the actual time here but I left them as an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;loadtime,&lt;/P&gt;&lt;P&gt;num(dls) as num_dls, // the fraction of the day returned by the function ( = 0.0416.....)&lt;/P&gt;&lt;P&gt;num(dls)*1440 as [num_dls*1440], // the fraction of the day * the number of minutes in a day ( = 1 hour)&lt;/P&gt;&lt;P&gt;Date(loadtime + dls, 'MM/DD/YYYY hh:m:ss') as [lt+dls], // adding daylight savings hour&lt;/P&gt;&lt;P&gt;Date(loadtime - dls, 'MM/DD/YYYY hh:m:ss') as [lt-dls]&amp;nbsp; // subtracting daylight savings hour&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt; now() as loadtime,&lt;/P&gt;&lt;P&gt; daylightsaving() as dls&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 10:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daylightfunction/m-p/276548#M103152</guid>
      <dc:creator />
      <dc:date>2011-06-09T10:56:20Z</dc:date>
    </item>
  </channel>
</rss>

