aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-search.c
diff options
context:
space:
mode:
authorGravatar pazz <patricktotzke@googlemail.com>2011-07-23 10:54:04 +0100
committerGravatar David Bremner <bremner@debian.org>2011-12-07 21:20:49 -0400
commit80936b5f5895277ed1954a6bde04672120da760c (patch)
treeacdb24bf362117f4a8f5f73d9d504657d9a106fb /notmuch-search.c
parente81e3d1bdb3ed3c05d1c98d229452d853baccdeb (diff)
json: date_relative for threads
include the date_relative field in the json formated output of notmuch search
Diffstat (limited to 'notmuch-search.c')
-rw-r--r--notmuch-search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-search.c b/notmuch-search.c
index 36686d19..90ff4c2d 100644
--- a/notmuch-search.c
+++ b/notmuch-search.c
@@ -176,12 +176,14 @@ format_thread_json (const void *ctx,
printf ("\"thread\": %s,\n"
"\"timestamp\": %ld,\n"
+ "\"date_relative\": \"%s\",\n"
"\"matched\": %d,\n"
"\"total\": %d,\n"
"\"authors\": %s,\n"
"\"subject\": %s,\n",
json_quote_str (ctx_quote, thread_id),
date,
+ notmuch_time_relative_date (ctx, date),
matched,
total,
json_quote_str (ctx_quote, authors),