summaryrefslogtreecommitdiffstats
path: root/runtime/datetime.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-06 17:33:58 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-06 17:33:58 +0200
commit2687d0010ca0ec691235a69c9da021719b61e8cd (patch)
treed8275d258253ed44fce7d163b2f5f1448fd8a7d4 /runtime/datetime.h
parent6343cf730acbb454765d0593d68032aebcb3d15c (diff)
downloadrsyslog-2687d0010ca0ec691235a69c9da021719b61e8cd.tar.gz
rsyslog-2687d0010ca0ec691235a69c9da021719b61e8cd.tar.xz
rsyslog-2687d0010ca0ec691235a69c9da021719b61e8cd.zip
added new property replacer option "time-subseconds"
enables to query just the subsecond part of a high-precision timestamp
Diffstat (limited to 'runtime/datetime.h')
-rw-r--r--runtime/datetime.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/datetime.h b/runtime/datetime.h
index fcb78172..1012ccc1 100644
--- a/runtime/datetime.h
+++ b/runtime/datetime.h
@@ -43,8 +43,9 @@ BEGINinterface(datetime) /* name must also be changed in ENDinterface macro! */
int (*formatTimestampToPgSQL)(struct syslogTime *ts, char *pDst, size_t iLenDst);
int (*formatTimestamp3339)(struct syslogTime *ts, char* pBuf, size_t iLenBuf);
int (*formatTimestamp3164)(struct syslogTime *ts, char* pBuf, size_t iLenBuf);
+ int (*formatTimestampSecFrac)(struct syslogTime *ts, char* pBuf, size_t iLenBuf);
ENDinterface(datetime)
-#define datetimeCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
+#define datetimeCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */
/* prototypes */
PROTOTYPEObj(datetime);