<?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 convert hours minutes to epoch time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/convert-hours-minutes-to-epoch-time/m-p/384393#M69127</link>
    <description>&lt;P&gt;I have a collumn which has values like 2h 50 m ,3h 10 m etc.&lt;BR /&gt;
Is there a way to convert this to a value like 2.50,3.10 etc&lt;/P&gt;

&lt;P&gt;Any leads would help.&lt;BR /&gt;
TIA&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 07:03:49 GMT</pubDate>
    <dc:creator>architkhanna</dc:creator>
    <dc:date>2019-07-11T07:03:49Z</dc:date>
    <item>
      <title>convert hours minutes to epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/convert-hours-minutes-to-epoch-time/m-p/384393#M69127</link>
      <description>&lt;P&gt;I have a collumn which has values like 2h 50 m ,3h 10 m etc.&lt;BR /&gt;
Is there a way to convert this to a value like 2.50,3.10 etc&lt;/P&gt;

&lt;P&gt;Any leads would help.&lt;BR /&gt;
TIA&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/convert-hours-minutes-to-epoch-time/m-p/384393#M69127</guid>
      <dc:creator>architkhanna</dc:creator>
      <dc:date>2019-07-11T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: convert hours minutes to epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/convert-hours-minutes-to-epoch-time/m-p/384394#M69128</link>
      <description>&lt;P&gt;You can use regex like below-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex mode=sed field=yourcolumnname "s/(\d+)h\s*(\d+).*/\1.\2/g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/convert-hours-minutes-to-epoch-time/m-p/384394#M69128</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2019-07-11T07:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: convert hours minutes to epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/convert-hours-minutes-to-epoch-time/m-p/384395#M69129</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test="2h 50 m ,3h 10 m" 
| makemv delim="," test 
| mvexpand test 
| eval test=replace(replace(test,"h\s","."),"\s{0,}m\s{0,}","") 
| mvcombine delim="," test 
| nomv test
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/convert-hours-minutes-to-epoch-time/m-p/384395#M69129</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-11T17:24:59Z</dc:date>
    </item>
  </channel>
</rss>

