<?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>question Re: Restrict the bar_${now():format(&amp;quot;yyyy/MM/dd/HH/mm/ss/&amp;quot;)} , I am putting a directory structure based on the earlier format, it goes on till seconds, how can i restrict it to only yyyy/MM in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restrict-the-bar-now-format-quot-yyyy-MM-dd-HH-mm-ss-quot-I/m-p/223469#M69844</link>
    <description>&lt;P&gt;@Shu I was just reading the docs found out ${now():format('yyyy')}. Thanks for the quick response. Much appreciated.&lt;/P&gt;&lt;P&gt;Dheeru&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 03:24:10 GMT</pubDate>
    <dc:creator>dhieru</dc:creator>
    <dc:date>2017-10-18T03:24:10Z</dc:date>
    <item>
      <title>Restrict the bar_${now():format("yyyy/MM/dd/HH/mm/ss/")} , I am putting a directory structure based on the earlier format, it goes on till seconds, how can i restrict it to only yyyy/MM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restrict-the-bar-now-format-quot-yyyy-MM-dd-HH-mm-ss-quot-I/m-p/223467#M69842</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;My directory in HDFS is yyyy/mm/dd/hh/mm/ss is there any way I can restrict it till month. example yyyy/mm&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dheeru&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 02:56:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restrict-the-bar-now-format-quot-yyyy-MM-dd-HH-mm-ss-quot-I/m-p/223467#M69842</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-10-18T02:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict the bar_${now():format("yyyy/MM/dd/HH/mm/ss/")} , I am putting a directory structure based on the earlier format, it goes on till seconds, how can i restrict it to only yyyy/MM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restrict-the-bar-now-format-quot-yyyy-MM-dd-HH-mm-ss-quot-I/m-p/223468#M69843</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20255/dheeruksingh.html" nodeid="20255"&gt;@dhieru singh&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;yeah you can change the format to below&lt;/P&gt;&lt;PRE&gt;${now():format("yyyyMM")} &lt;/PRE&gt;&lt;P&gt;will gives you only year and month.&lt;/P&gt;&lt;P&gt;In addition you make use any combination in EL in date manupulations with now():- &lt;/P&gt;&lt;PRE&gt;yyyy //gives only the year
MM //month
dd //date 
HH//hours
mm // minutes from time (MM are for month)
ss // seconds SSS //milliseconds&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Examples:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;1.year with month&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;${now():format("yyyy-MM")} &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2017-10&lt;/P&gt;&lt;P&gt;2.Hour with minute&lt;/P&gt;&lt;PRE&gt;${now():format("HH:mm")} &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;16:17&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;3.year with minutes&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;${now():format("yyyymm")} &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;201713   //13 because minute from current time stamp&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;4.year with date&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;${now():format("yyyydd")}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;output:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; 201717  //year with today's date&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 03:08:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restrict-the-bar-now-format-quot-yyyy-MM-dd-HH-mm-ss-quot-I/m-p/223468#M69843</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-18T03:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict the bar_${now():format("yyyy/MM/dd/HH/mm/ss/")} , I am putting a directory structure based on the earlier format, it goes on till seconds, how can i restrict it to only yyyy/MM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restrict-the-bar-now-format-quot-yyyy-MM-dd-HH-mm-ss-quot-I/m-p/223469#M69844</link>
      <description>&lt;P&gt;@Shu I was just reading the docs found out ${now():format('yyyy')}. Thanks for the quick response. Much appreciated.&lt;/P&gt;&lt;P&gt;Dheeru&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 03:24:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Restrict-the-bar-now-format-quot-yyyy-MM-dd-HH-mm-ss-quot-I/m-p/223469#M69844</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-10-18T03:24:10Z</dc:date>
    </item>
  </channel>
</rss>

