<?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 Truncate seconds from Timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173137#M42433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To &lt;EM&gt;display&lt;/EM&gt; just minutes, don't include seconds or fractions of a second in the format:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;time(MyTimeField,'hh:mm')&lt;BR /&gt;timestamp(MyTimestampField,'DD/MM/YY hh:mm')&lt;/P&gt;&lt;P&gt;To actually &lt;EM&gt;remove&lt;/EM&gt; the seconds from the underlying data, there would be multiple approaches. Here's one:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;time(floor(MyTimeField,1/(24*60)),'hh:mm')&lt;BR /&gt;timestamp(floor(MyTimestampField,1/(24*60)),'DD/MM/YY hh:mm')&lt;/P&gt;&lt;P&gt;Or did you really mean &lt;EM&gt;just&lt;/EM&gt; minutes, and not hours or the date either?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;time(MyTimeField,'mm')&lt;BR /&gt;timestamp(MyTimestampField,'mm')&lt;BR /&gt;time(floor(frac(MyTimeField*24)/24,1/(24*60)),'mm')&lt;BR /&gt;timestamp(floor(frac(MyTimestampField*24)/24,1/(24*60)),'mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Oct 2010 16:57:34 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-10-14T16:57:34Z</dc:date>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173131#M42427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an equivalent QV function that truncates the seconds part from a timestamp ?&lt;/P&gt;&lt;P&gt;In Oracle, I'll do something like this - TRUNC(sysdate, 'MI') .&lt;/P&gt;&lt;P&gt;For instance, date today is 06/01/2010 04:58:45 PM, the function above returns as 06/01/2010 04:58:00 PM.&lt;/P&gt;&lt;P&gt;I tried the timestamp() function but this will only affect the column display not the value stored in QV. I need the seconds stored as 00 as I am using this for calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 01:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173131#M42427</guid>
      <dc:creator />
      <dc:date>2010-06-02T01:02:31Z</dc:date>
    </item>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173132#M42428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe there's a function to do so, but I'm guessing this would work:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;timestamp(floor(YourTimestamp*1440)/1440)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 01:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173132#M42428</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-02T01:43:29Z</dc:date>
    </item>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173133#M42429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John. Your solution works like a charm !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 22:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173133#M42429</guid>
      <dc:creator />
      <dc:date>2010-06-02T22:07:55Z</dc:date>
    </item>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173134#M42430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(frac(YourTimestamp),'hh:mm:00)) // Note 0 at the end&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;would be easier to read or mantain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 20:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173134#M42430</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2010-06-11T20:11:05Z</dc:date>
    </item>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173135#M42431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but it doesn't actually truncate to minutes. It only changes the display. That means that 15 seconds past the minute and 45 seconds past the minute will be maintained as two separate values, not the same value. Now in some cases, changing the display may be good enough. In others, such as in Anthony's case, as he stated explicitly, it won't be. See attached, where a list box for the display-only version shows the "same" value twice, which almost certainly isn't what you'd want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 20:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173135#M42431</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-11T20:38:24Z</dc:date>
    </item>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173136#M42432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;This might be a very basic question, however how would you truncate the date and time field to display just minutes in the application? I tried using timestamp and few other functions, but no luck .&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 12:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173136#M42432</guid>
      <dc:creator />
      <dc:date>2010-10-14T12:14:36Z</dc:date>
    </item>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173137#M42433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To &lt;EM&gt;display&lt;/EM&gt; just minutes, don't include seconds or fractions of a second in the format:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;time(MyTimeField,'hh:mm')&lt;BR /&gt;timestamp(MyTimestampField,'DD/MM/YY hh:mm')&lt;/P&gt;&lt;P&gt;To actually &lt;EM&gt;remove&lt;/EM&gt; the seconds from the underlying data, there would be multiple approaches. Here's one:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;time(floor(MyTimeField,1/(24*60)),'hh:mm')&lt;BR /&gt;timestamp(floor(MyTimestampField,1/(24*60)),'DD/MM/YY hh:mm')&lt;/P&gt;&lt;P&gt;Or did you really mean &lt;EM&gt;just&lt;/EM&gt; minutes, and not hours or the date either?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;time(MyTimeField,'mm')&lt;BR /&gt;timestamp(MyTimestampField,'mm')&lt;BR /&gt;time(floor(frac(MyTimeField*24)/24,1/(24*60)),'mm')&lt;BR /&gt;timestamp(floor(frac(MyTimestampField*24)/24,1/(24*60)),'mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173137#M42433</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-14T16:57:34Z</dc:date>
    </item>
    <item>
      <title>Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173138#M42434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John. That helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 15:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/173138#M42434</guid>
      <dc:creator />
      <dc:date>2010-10-18T15:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate seconds from Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/1974741#M1220694</link>
      <description>&lt;P&gt;I've managed to trim the timestamp to date and hour with the following:&lt;/P&gt;
&lt;P&gt;Timestamp(Timestamp#(Text(Timestamp(Now(),'YYYYMMDD_hh')),'YYYYMMDD_hh')).&lt;/P&gt;
&lt;P&gt;First it formats it to what you want, then convert that into text to keep only what you see, then convert it back to a timestamp and then format it to a timestamp again.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 10:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Truncate-seconds-from-Timestamp/m-p/1974741#M1220694</guid>
      <dc:creator>PhilipMertin</dc:creator>
      <dc:date>2022-08-30T10:27:58Z</dc:date>
    </item>
  </channel>
</rss>

