<?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: How do I convert 'LastPhoneHome' value to time format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375181#M67967</link>
    <description>&lt;P&gt;In c#&lt;/P&gt;

&lt;P&gt;DateTime LastPhoneHome = DateTime.AddSeconds(lastphonehome).ToLocalTime();&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 10:23:21 GMT</pubDate>
    <dc:creator>pfabrizi</dc:creator>
    <dc:date>2018-03-27T10:23:21Z</dc:date>
    <item>
      <title>How do I convert 'LastPhoneHome' value to time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375177#M67963</link>
      <description>&lt;P&gt;I am building a DB to manage newly installed UF devices as well as the de-installed UF devices. I was wondering I was wondering how to convert the lastphonehome value to a readable time?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;I am using the REST API in C#&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 13:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375177#M67963</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-03-23T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert 'LastPhoneHome' value to time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375178#M67964</link>
      <description>&lt;P&gt;@pfabrizi, you can use &lt;A href="https://stackoverflow.com/questions/249760/how-can-i-convert-a-unix-timestamp-to-datetime-and-vice-versa"&gt;C# to convert time from Unix Epoch time to String Time&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;In Splunk you can try the following Search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/deployment/server/clients
| fieldformat lastPhoneHomeTime=strftime(lastPhoneHomeTime,"%Y/%m/%d %H:%M:%S.%3N")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375178#M67964</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-23T14:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert 'LastPhoneHome' value to time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375179#M67965</link>
      <description>&lt;P&gt;Thank You, I have it working. appreciate your help.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375179#M67965</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-03-23T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert 'LastPhoneHome' value to time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375180#M67966</link>
      <description>&lt;P&gt;@pfabrizi, that's really great!!! If you figured out solution on your own may be you can add the approach as Answer and accept the same to mark this question as answered.&lt;/P&gt;

&lt;P&gt;Happy Weekend &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375180#M67966</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-23T15:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert 'LastPhoneHome' value to time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375181#M67967</link>
      <description>&lt;P&gt;In c#&lt;/P&gt;

&lt;P&gt;DateTime LastPhoneHome = DateTime.AddSeconds(lastphonehome).ToLocalTime();&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 10:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-convert-LastPhoneHome-value-to-time-format/m-p/375181#M67967</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-03-27T10:23:21Z</dc:date>
    </item>
  </channel>
</rss>

