Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Print the commit and tag dates through one helper
Diffstat (limited to '')
-rw-r--r--source/ui-shared.h6
1 file changed, 6 insertions, 0 deletions
diff --git a/source/ui-shared.h b/source/ui-shared.h
index 6b58ab3..ee350f0 100644
--- a/source/ui-shared.h
+++ b/source/ui-shared.h
@@ -109,6 +109,12 @@ extern struct date_mode cgit_date_mode(enum date_mode_type type);
extern void cgit_print_age(time_t t, int tz, time_t max_relative);
/*
+ * Print date as a <time> element, readable on the page and exact in its
+ * datetime attribute.
+ */
+extern void cgit_print_date(timestamp_t date, int tz);
+
+/*
* Print name through the email filter, followed by the address when
* show_email is set and enable-plain-email is on. A missing address reaches
* the filter as an empty string, since a filter must not be handed NULL.