trouble searching with unix timestamps
Matthew Lear
matt at bubblegen.co.uk
Mon Jan 29 08:13:38 PST 2018
Wonderful! Thanks Jani.
> Alternatively, you can use @<timestamp> in date: queries, although this
> seems to be completely undocumented:
I guess this relates to similar syntax requirements of date -d in that a
unix timestamp is required to be preceded by an @
# date -d 1517152333
date: invalid date ‘1517152333’
# date -d @1517152333
Sun Jan 28 15:12:13 GMT 2018
On Mon, Jan 29, 2018 at 4:03 PM, Jani Nikula <jani at nikula.org> wrote:
> On Mon, 29 Jan 2018, Matthew Lear <matt at bubblegen.co.uk> wrote:
> > Hi. I've noticed that I'm unable to notmuch search using date with unix
> > timestamps (ie number of seconds since Jan 1st 1970 UTC). I get a xapian
> > error. The notmuch man pages state that searching using
> > 'date:<initial-timestamp>..<final-timestamp>'
> > where "each timestamp is a number representing the number of seconds
> since
> > 1970-01-01 00:00:00 UTC" is supported, so I'm wondering what's wrong with
> > my installation.
>
> The man page could use some clarification.
>
> The <initial-timestamp>..<final-timestamp> syntax predates the date:
> prefix, and needs to be given as-is:
>
> $ notmuch search 1517152333..1517238733
>
> Alternatively, you can use @<timestamp> in date: queries, although this
> seems to be completely undocumented:
>
> $ notmuch search date:@1517152333.. at 1517238733
>
> HTH,
> Jani.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20180129/25cb7d2f/attachment-0001.html>
More information about the notmuch
mailing list