<?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: Function To Return Last Weekday? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172414#M186516</link>
    <description>&lt;P&gt;Some reading here&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2014 18:56:03 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-05-20T18:56:03Z</dc:date>
    <item>
      <title>Function To Return Last Weekday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172413#M186515</link>
      <description>&lt;P&gt;Is there a function to return the last weekday? &lt;/P&gt;

&lt;P&gt;Instead of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;relative_time(now(), "-1d@d") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any notation to say workday or weekday?&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2014 18:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172413#M186515</guid>
      <dc:creator>andrewkenth</dc:creator>
      <dc:date>2014-05-20T18:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function To Return Last Weekday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172414#M186516</link>
      <description>&lt;P&gt;Some reading here&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2014 18:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172414#M186516</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-20T18:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function To Return Last Weekday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172415#M186517</link>
      <description>&lt;P&gt;@w-1d would take&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2014 19:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172415#M186517</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-05-20T19:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function To Return Last Weekday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172416#M186518</link>
      <description>&lt;P&gt;That did not seem to work. Instead I used a case to check the day of the week:&lt;/P&gt;

&lt;P&gt;| where Date &amp;gt; case(strftime(now(),"%w")="1", relative_time(now(), "-3d@d"), strftime(now(),"%w")!="1", relative_time(now(), "-1d@d"))&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Function-To-Return-Last-Weekday/m-p/172416#M186518</guid>
      <dc:creator>andrewkenth</dc:creator>
      <dc:date>2020-09-28T16:40:42Z</dc:date>
    </item>
  </channel>
</rss>

