From 95a207ac94980b02ef3ea5d58e697089955ff9b5 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 30 Nov 2013 13:45:41 -0800 Subject: New feature: date-strftime(). --- template.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'template.h') diff --git a/template.h b/template.h index 04137b09..07496fe8 100644 --- a/template.h +++ b/template.h @@ -48,7 +48,7 @@ struct template { enum EntryTypes { UNDEFINED = 0, CONSTANT = 1, FIELD = 2 }; enum tplFormatTypes { tplFmtDefault = 0, tplFmtMySQLDate = 1, tplFmtRFC3164Date = 2, tplFmtRFC3339Date = 3, tplFmtPgSQLDate = 4, - tplFmtSecFrac = 5}; + tplFmtSecFrac = 5, tplFmtStrftime = 6}; enum tplFormatCaseConvTypes { tplCaseConvNo = 0, tplCaseConvUpper = 1, tplCaseConvLower = 2 }; #include "msg.h" @@ -88,6 +88,7 @@ struct templateEntry { int field_expand; /* use multiple instances of the field delimiter as a single one? */ enum tplFormatTypes eDateFormat; + char *strftime_fmt; /* for the tplFormatStrftime eDateFormat */ enum tplFormatCaseConvTypes eCaseConv; struct { /* bit fields! */ unsigned bDropCC: 1; /* drop control characters? */ -- cgit v1.2.3