<div dir="ltr">Wonderful! Thanks Jani.<div><br></div><div><div>> Alternatively, you can use @<timestamp> in date: queries, although this</div><div>> seems to be completely undocumented:</div></div><div><br></div><div>I guess this relates to similar syntax requirements of date -d in that a unix timestamp is required to be preceded by an @</div><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><div># date -d 1517152333<br></div><div>date: invalid date ‘1517152333’</div></div></div><div><div># date -d @1517152333</div><div>Sun Jan 28 15:12:13 GMT 2018</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 29, 2018 at 4:03 PM, Jani Nikula <span dir="ltr"><<a href="mailto:jani@nikula.org" target="_blank">jani@nikula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, 29 Jan 2018, Matthew Lear <<a href="mailto:matt@bubblegen.co.uk">matt@bubblegen.co.uk</a>> wrote:<br>
> Hi. I've noticed that I'm unable to notmuch search using date with unix<br>
> timestamps (ie number of seconds since Jan 1st 1970 UTC). I get a xapian<br>
> error. The notmuch man pages state that searching using<br>
> 'date:<initial-timestamp>..<<wbr>final-timestamp>'<br>
> where "each timestamp is a number representing the number of seconds since<br>
> 1970-01-01 00:00:00 UTC" is supported, so I'm wondering what's wrong with<br>
> my installation.<br>
<br>
</span>The man page could use some clarification.<br>
<br>
The <initial-timestamp>..<final-<wbr>timestamp> syntax predates the date:<br>
prefix, and needs to be given as-is:<br>
<br>
$ notmuch search 1517152333..1517238733<br>
<br>
Alternatively, you can use @<timestamp> in date: queries, although this<br>
seems to be completely undocumented:<br>
<br>
$ notmuch search date:@1517152333..@1517238733<br>
<br>
HTH,<br>
Jani.<br>
</blockquote></div><br></div>