unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jani Nikula <jani@nikula.org>
To: Matthew Lear <matt@bubblegen.co.uk>, notmuch@notmuchmail.org
Subject: Re: trouble searching with unix timestamps
Date: Mon, 29 Jan 2018 18:03:14 +0200	[thread overview]
Message-ID: <874ln4zm7x.fsf@nikula.org> (raw)
In-Reply-To: <CAJFxaw-zfQFUZQtyM4PVoP6DCeNhXaFHzNBAUxevfRdqU+Qy-Q@mail.gmail.com>

On Mon, 29 Jan 2018, Matthew Lear <matt@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..@1517238733

HTH,
Jani.

  reply	other threads:[~2018-01-29 16:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-29 15:39 trouble searching with unix timestamps Matthew Lear
2018-01-29 16:03 ` Jani Nikula [this message]
2018-01-29 16:13   ` Matthew Lear
2018-01-31  3:04     ` Daniel Kahn Gillmor
2018-02-01 20:54       ` Matthew Lear

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874ln4zm7x.fsf@nikula.org \
    --to=jani@nikula.org \
    --cc=matt@bubblegen.co.uk \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).