<?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: Get Time from a String ''yyyy-MM-dd hh:ss:mm' field in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149007#M35973</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10082/vilaresantonio.html" nodeid="10082"&gt;@Pedro Rodgers&lt;/A&gt; I would use the GetMinute, GetSecond, Get MilliSecond functions.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 22:09:45 GMT</pubDate>
    <dc:creator>sunile_manjee</dc:creator>
    <dc:date>2016-07-26T22:09:45Z</dc:date>
    <item>
      <title>Get Time from a String ''yyyy-MM-dd hh:ss:mm' field</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149006#M35972</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I've the following field :&lt;/P&gt;&lt;P&gt;ToString( ToDate((long) Time_Interval), 'yyyy-MM-dd hh:ss:mm') as Time&lt;/P&gt;&lt;P&gt;How can I obtain only the time (hh:ss:mm)? I already try: 
ToString( ToDate(Time), 'HH:mm:ss.SSS')&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:38:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149006#M35972</guid>
      <dc:creator>Stewart12586</dc:creator>
      <dc:date>2016-07-26T20:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get Time from a String ''yyyy-MM-dd hh:ss:mm' field</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149007#M35973</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10082/vilaresantonio.html" nodeid="10082"&gt;@Pedro Rodgers&lt;/A&gt; I would use the GetMinute, GetSecond, Get MilliSecond functions.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 22:09:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149007#M35973</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-26T22:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get Time from a String ''yyyy-MM-dd hh:ss:mm' field</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149008#M35974</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1486/smanjee.html"&gt;Sunile Manjee&lt;/A&gt; many thanks! One more question: is possible to create a variable and use to IF statement. Example:

A = Foreach X Generate A1,A2,A3;
--Create a variable
var = Concat(A1,A2);
Split A into B IF (var == "teste");

Is possible to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 22:43:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149008#M35974</guid>
      <dc:creator>Stewart12586</dc:creator>
      <dc:date>2016-07-26T22:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Time from a String ''yyyy-MM-dd hh:ss:mm' field</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149009#M35975</link>
      <description>&lt;P&gt; You have to use arithmetic operation like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;X = FOREACH A GENERATE f2, (f2==1?1:COUNT(B));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or embed pig in wrapper &lt;/P&gt;&lt;P&gt;&lt;A href="http://pig.apache.org/docs/r0.11.0/cont.html#embed-python" target="_blank"&gt;http://pig.apache.org/docs/r0.11.0/cont.html#embed-python&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 23:03:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-Time-from-a-String-yyyy-MM-dd-hh-ss-mm-field/m-p/149009#M35975</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-26T23:03:03Z</dc:date>
    </item>
  </channel>
</rss>

