<?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: Future Request: Epoch Time Correction in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469196#M80723</link>
    <description>&lt;P&gt;Thanks for replay. I change TZ to UTC &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval time=-62167219200 
| eval _time=time 
| eval time_text=strftime(_time,"%c %::z")  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   time    time_text
0000/01/01 00:00:59 -62167219200    Sat Jan  1 00:00:00 0000 +00:00:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am cursed.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2020 10:51:53 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-02-15T10:51:53Z</dc:date>
    <item>
      <title>Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469192#M80719</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval time=-62167252739
| eval _time=time
| eval time_text=strftime(_time,"%c %::z")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;-62167252739&lt;/CODE&gt; is my negative epoch time limitation.&lt;BR /&gt;
I don't know why.&lt;BR /&gt;
&lt;CODE&gt;-62167219200&lt;/CODE&gt; is  "0000/01/01 00:00:00 +0000" . &lt;BR /&gt;
the diff is &lt;CODE&gt;9*60*60 + 18*60 + 59&lt;/CODE&gt; . &lt;BR /&gt;
 my result is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   time    time_text
0000/01/01 00:00:59 -62167252739    Sat Jan  1 00:00:00 0000 +09:18:59
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my TZ=JST(+09:00). &lt;BR /&gt;
Is this problem only JST? &lt;BR /&gt;
Hopefully it will be fixed.&lt;/P&gt;

&lt;P&gt;my splunk is ver 8.0.1 on macosx 10.14.6.&lt;BR /&gt;
On &lt;EM&gt;Terminal&lt;/EM&gt; , &lt;CODE&gt;date -r -62167252739&lt;/CODE&gt; is &lt;CODE&gt;0000/01/01 00:00:00 LMT&lt;/CODE&gt;&lt;BR /&gt;
As this result, This may not splunk problem, maybe.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 09:42:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469192#M80719</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-08T09:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469193#M80720</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I don't understand your logic? Since it is an epoch it is not a fixed time. The result of an epoch time of -62167252739 is different every second you run it.&lt;BR /&gt;
The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 10:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469193#M80720</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2020-02-11T10:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469194#M80721</link>
      <description>&lt;P&gt;Hi, @Azeemering &lt;BR /&gt;
I have a mistake. please check my question.&lt;BR /&gt;
anyway, &lt;CODE&gt;strftime&lt;/CODE&gt; can handle negative, but &lt;CODE&gt;strptime&lt;/CODE&gt; can't.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 09:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469194#M80721</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-12T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469195#M80722</link>
      <description>&lt;P&gt;I'm not 100% clear on what you are asking, however&lt;/P&gt;

&lt;P&gt;The Epoch or Unix Timestamp was originally designed to use a signed 32bit integer number, which gives a range of 136 years, with 1970 in the middle.&lt;BR /&gt;
This means that the earliest you can represent with such limitations is 1901-12-13 20:45:52UTC&lt;BR /&gt;
It also means you can expect issues in January 2038.&lt;/P&gt;

&lt;P&gt;Trying to do conversions with dates prior to that is dependent on whether your system is using expanded time and 64bit values.&lt;BR /&gt;
Wouldn't it be nice if there was a standard? - And of course there is... several of them:&lt;BR /&gt;
&lt;A href="https://en.wikipedia.org/wiki/Unix_time"&gt;https://en.wikipedia.org/wiki/Unix_time&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ultimately exactly how epoch dates are handled (particularly in the past) is implementation specific, so normal warnings apply.&lt;/P&gt;

&lt;P&gt;I guess from a Splunk perspective - if you have machine data from much before 1901 you probably have some explaining to do!&lt;/P&gt;

&lt;P&gt;Also - doing relative calculations (in seconds) with timezone offsets is confusing! Its much simpler to do it in UTC &lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 10:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469195#M80722</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-15T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469196#M80723</link>
      <description>&lt;P&gt;Thanks for replay. I change TZ to UTC &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval time=-62167219200 
| eval _time=time 
| eval time_text=strftime(_time,"%c %::z")  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   time    time_text
0000/01/01 00:00:59 -62167219200    Sat Jan  1 00:00:00 0000 +00:00:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am cursed.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 10:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469196#M80723</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-15T10:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469197#M80724</link>
      <description>&lt;P&gt;I have to submit a new answer to upload image.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 11:54:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469197#M80724</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-15T11:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469198#M80725</link>
      <description>&lt;P&gt;Look at this - note the warning about dates prior to 1752!&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8378i6F013E98B4A4AE46/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Not exactly sure what factors affect the calculation - could it be compensation for leap seconds in the epoch-string conversion?&lt;/P&gt;

&lt;P&gt;Standards!&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 11:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469198#M80725</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-15T11:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Future Request: Epoch Time Correction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469199#M80726</link>
      <description>&lt;P&gt;Thanks, @nickhillscpl &lt;BR /&gt;
This result is also interesting.&lt;BR /&gt;
Both are GMT, but the time is different.&lt;/P&gt;

&lt;P&gt;The problem is the difference between &lt;CODE&gt;_time&lt;/CODE&gt;  and &lt;CODE&gt;strftime()&lt;/CODE&gt; .&lt;/P&gt;

&lt;P&gt;That said, it's probably not a problem in practice, as my analysis only pertains before 1870.&lt;/P&gt;

&lt;P&gt;I think that different mechanisms may have an impact in the future.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 22:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Future-Request-Epoch-Time-Correction/m-p/469199#M80726</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-15T22:03:49Z</dc:date>
    </item>
  </channel>
</rss>

