<?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: Is it possible to create a timestamp in tmap output that iterates per 5 minutes? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375216#M137678</link>
    <description>&lt;P&gt;Hi rhall, I just did UAT for my job and the desired output for this row should be&lt;/P&gt;&lt;P&gt;static like what I mentioned previously except for the last timestamp so once it reaches 00:00 again the date should be date + 1. For ex.&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:05&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:10&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:15&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 23:55&lt;/P&gt;&lt;P&gt;06 - 11- 2021 00:00&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:05&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am currently trying to experiment with the routine but am struggling &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; . &lt;/P&gt;&lt;P&gt;Is there a quick fix for this?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 10:38:02 GMT</pubDate>
    <dc:creator>JABELLA1634831127</dc:creator>
    <dc:date>2021-12-02T10:38:02Z</dc:date>
    <item>
      <title>Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375207#M137669</link>
      <description>&lt;P&gt;So currently I have a date that I ingested from a filename and it has a format of "dd-MM-yyyy HH:mm" and the HH:mm is currently 00:00. Is it possible that it iterates per 5 minutes 00:00, 00:05 up to 23:55?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L0ZpmAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133860iAD5D9A346D4F18F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L0ZpmAAF.png" alt="0695b00000L0ZpmAAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375207#M137669</guid>
      <dc:creator>JABELLA1634831127</dc:creator>
      <dc:date>2024-11-15T23:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375208#M137670</link>
      <description>&lt;P&gt;Hi @JOHN ZACHARY ABELLA​,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, this is possible using a routine. You create the routine (basically this is a Java class) and call the method that you have created to do this in the tMap for every row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example routine for this can be seen below.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;public&lt;/B&gt; &lt;B&gt;class&lt;/B&gt; DateIteration {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	&lt;B&gt;private&lt;/B&gt; &lt;B&gt;static&lt;/B&gt; Date &lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	&lt;B&gt;public&lt;/B&gt; &lt;B&gt;static&lt;/B&gt; Date iterateDates(Date sourceDate, &lt;B&gt;int&lt;/B&gt; minutesToAdd) {&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;B&gt;if&lt;/B&gt;(&lt;I&gt;date&lt;/I&gt;==&lt;B&gt;null&lt;/B&gt;) {&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			&lt;I&gt;date&lt;/I&gt; = sourceDate;&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;I&gt;date&lt;/I&gt; = routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;, 5, "mm");&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;B&gt;return&lt;/B&gt; &lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'd call this in your tMap like this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;routines.DateIteration.iterateDates({Your Date Column}, &lt;B&gt;5&lt;/B&gt;) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I have added {Your Date Column} you would place your date column there.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 18:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375208#M137670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-18T18:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375209#M137671</link>
      <description>&lt;P&gt;Thank you so much!. It works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 01:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375209#M137671</guid>
      <dc:creator>JABELLA1634831127</dc:creator>
      <dc:date>2021-11-19T01:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375210#M137672</link>
      <description>&lt;P&gt;Glad to be able to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 10:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375210#M137672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-19T10:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375211#M137673</link>
      <description>&lt;P&gt;Hi rhall, I overlooked the data in my desired output table. So for my output table right now using your solution it goes 05-11- 2021 23:55 then 06-11-2021 00:00. instead of 05-11-2021 00:00. Would it be possible if only the timestamp iterates while the initial date remains static? So after reaching 00:00 again, the date should still be 05-11-2021&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 13:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375211#M137673</guid>
      <dc:creator>JABELLA1634831127</dc:creator>
      <dc:date>2021-11-25T13:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375212#M137674</link>
      <description>&lt;P&gt;This is a quick fix to the routine I sent you. It might not be perfect, but should work for you....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;public&lt;/B&gt; &lt;B&gt;class&lt;/B&gt; DateIteration {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	&lt;B&gt;private&lt;/B&gt; &lt;B&gt;static&lt;/B&gt; Date &lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	&lt;B&gt;public&lt;/B&gt; &lt;B&gt;static&lt;/B&gt; Date iterateDates(Date sourceDate, &lt;B&gt;int&lt;/B&gt; minutesToAdd) {&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;B&gt;if&lt;/B&gt;(&lt;I&gt;date&lt;/I&gt;==&lt;B&gt;null&lt;/B&gt;) {&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;			&lt;I&gt;date&lt;/I&gt; = sourceDate;&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;I&gt;date&lt;/I&gt; = routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;, 5, "mm");&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;B&gt;if&lt;/B&gt;(routines.TalendDate.&lt;I&gt;getPartOfDate&lt;/I&gt;("DAY_OF_WEEK", sourceDate)!=routines.TalendDate.&lt;I&gt;getPartOfDate&lt;/I&gt;("DAY_OF_WEEK", &lt;I&gt;date&lt;/I&gt;)){&lt;/P&gt;&lt;P&gt;			&lt;I&gt;date&lt;/I&gt; = routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;,-1,"dd");&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		&lt;B&gt;return&lt;/B&gt; &lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 16:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375212#M137674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375213#M137675</link>
      <description>&lt;P&gt;Thanks again! It works. May I ask the logic behind the code?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 08:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375213#M137675</guid>
      <dc:creator>JABELLA1634831127</dc:creator>
      <dc:date>2021-11-27T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375214#M137676</link>
      <description>&lt;P&gt;OK, so the first time this method is called in a Job, it will set the "date" static variable. If it has already been set, the date being passed in ("sourceDate") does nothing to the "date" variable. Then we add 5 minutes to the "date" variable. This means that every time this method is called, 5 minutes will be added to the "date" variable which is maintained as a static variable. This was the logic of the original code I sent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next bit was a bit of a quick fix to keep it to the same day. This is an ideal solution, but works in your scenario. To make sure that the day remains the same, we use the "sourceDate" param value and check its day of the week against the updated "date" variable's day of the week. If they are different, we subtract 1 day from the updated "date" value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said, this is not perfect. If you send through a different date in subsequent calls, it will cause 1 day to be removed from the output date. As such, I have updated this below to give a better solution in case your date does change. The "initialDay" variable will now store the very first day of the week supplied during the run of the job. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;public&lt;/B&gt;&amp;nbsp;&lt;B&gt;class&lt;/B&gt;&amp;nbsp;DateIteration {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;private&lt;/B&gt;&amp;nbsp;&lt;B&gt;static&lt;/B&gt;&amp;nbsp;Date&amp;nbsp;&lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;private static int initialDay;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;public&lt;/B&gt;&amp;nbsp;&lt;B&gt;static&lt;/B&gt;&amp;nbsp;Date iterateDates(Date sourceDate,&amp;nbsp;&lt;B&gt;int&lt;/B&gt;&amp;nbsp;minutesToAdd) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;if&lt;/B&gt;(&lt;I&gt;date&lt;/I&gt;==&lt;B&gt;null&lt;/B&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;date&lt;/I&gt;&amp;nbsp;= sourceDate;&lt;/P&gt;&lt;P&gt;initialDay = routines.TalendDate.&lt;I&gt;getPartOfDate&lt;/I&gt;("DAY_OF_WEEK", sourceDate);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;date&lt;/I&gt;&amp;nbsp;= routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;, 5, "mm");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;if&lt;/B&gt;(initialDay!=routines.TalendDate.&lt;I&gt;getPartOfDate&lt;/I&gt;("DAY_OF_WEEK",&amp;nbsp;&lt;I&gt;date&lt;/I&gt;)){&lt;/P&gt;&lt;P&gt;&lt;I&gt;date&lt;/I&gt;&amp;nbsp;= routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;,-1,"dd");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;return&lt;/B&gt;&amp;nbsp;&lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375214#M137676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-29T10:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375215#M137677</link>
      <description>&lt;P&gt;Oh thank you so much, really appreciate all the help. It is much clearer now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 05:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375215#M137677</guid>
      <dc:creator>JABELLA1634831127</dc:creator>
      <dc:date>2021-12-01T05:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375216#M137678</link>
      <description>&lt;P&gt;Hi rhall, I just did UAT for my job and the desired output for this row should be&lt;/P&gt;&lt;P&gt;static like what I mentioned previously except for the last timestamp so once it reaches 00:00 again the date should be date + 1. For ex.&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:05&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:10&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:15&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 23:55&lt;/P&gt;&lt;P&gt;06 - 11- 2021 00:00&lt;/P&gt;&lt;P&gt;05 - 11 - 2021 00:05&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am currently trying to experiment with the routine but am struggling &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; . &lt;/P&gt;&lt;P&gt;Is there a quick fix for this?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 10:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375216#M137678</guid>
      <dc:creator>JABELLA1634831127</dc:creator>
      <dc:date>2021-12-02T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375217#M137679</link>
      <description>&lt;P&gt;This will do it....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;public&lt;/B&gt;&amp;nbsp;&lt;B&gt;class&lt;/B&gt;&amp;nbsp;DateIteration {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;private&lt;/B&gt;&amp;nbsp;&lt;B&gt;static&lt;/B&gt;&amp;nbsp;Date&amp;nbsp;&lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;private static int initialDay;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;public&lt;/B&gt;&amp;nbsp;&lt;B&gt;static&lt;/B&gt;&amp;nbsp;Date iterateDates(Date sourceDate,&amp;nbsp;&lt;B&gt;int&lt;/B&gt;&amp;nbsp;minutesToAdd) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;if&lt;/B&gt;(&lt;I&gt;date&lt;/I&gt;==&lt;B&gt;null&lt;/B&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;date&lt;/I&gt;&amp;nbsp;= sourceDate;&lt;/P&gt;&lt;P&gt;initialDay = routines.TalendDate.&lt;I&gt;getPartOfDate&lt;/I&gt;("DAY_OF_WEEK", sourceDate);&lt;/P&gt;&lt;P&gt;}else{ //New section&lt;/P&gt;&lt;P&gt;&lt;B&gt;if&lt;/B&gt;(initialDay!=routines.TalendDate.&lt;I&gt;getPartOfDate&lt;/I&gt;("DAY_OF_WEEK",&amp;nbsp;&lt;I&gt;date&lt;/I&gt;)){&lt;/P&gt;&lt;P&gt;&lt;I&gt;date&lt;/I&gt;&amp;nbsp;= routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;,-1,"dd");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;date&lt;/I&gt;&amp;nbsp;= routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;, 5, "mm");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*&amp;nbsp;Code moved to the "else" of the first if condition&lt;/P&gt;&lt;P&gt;&lt;B&gt;if&lt;/B&gt;(initialDay!=routines.TalendDate.&lt;I&gt;getPartOfDate&lt;/I&gt;("DAY_OF_WEEK",&amp;nbsp;&lt;I&gt;date&lt;/I&gt;)){&lt;/P&gt;&lt;P&gt;&lt;I&gt;date&lt;/I&gt;&amp;nbsp;= routines.TalendDate.&lt;I&gt;addDate&lt;/I&gt;(&lt;I&gt;date&lt;/I&gt;,-1,"dd");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;} */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;return&lt;/B&gt;&amp;nbsp;&lt;I&gt;date&lt;/I&gt;;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I simply moved the if condition which deals with the amendment of the day in the date to the "else" of the first if condition.  What this does is leave the very first time the day ticks over to the next day. Then the next time the method is called it checks the original day against the current value's day. When they do not match, it automatically removes a day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to ensure that all dates supplied have 00:00:00.000 as the time. If not, you will need to add something to this to ensure that the time is changed to 00:00:00.000.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 10:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375217#M137679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-02T10:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a timestamp in tmap output that iterates per 5 minutes?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375218#M137680</link>
      <description>&lt;P&gt;Thanks again for all your help and apologies for asking so much questions. It works now and yup the dates will have 00:00:00 as the time.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 11:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-it-possible-to-create-a-timestamp-in-tmap-output-that/m-p/2375218#M137680</guid>
      <dc:creator>JABELLA1634831127</dc:creator>
      <dc:date>2021-12-02T11:08:08Z</dc:date>
    </item>
  </channel>
</rss>

