chiark / gitweb /
shared: FORMAT_TIMESTAMP_MAX -- include space for unicode weekdays
[elogind.git] / src / shared / time-util.h
index 6b69940eb5d4f9165cad38aef562e3dab6740fc0..7194875ec286df81372830dbb46ce0264f955bc5 100644 (file)
@@ -53,8 +53,8 @@ typedef struct dual_timestamp {
 #define USEC_PER_YEAR (31557600ULL*USEC_PER_SEC)
 #define NSEC_PER_YEAR (31557600ULL*NSEC_PER_SEC)
 
-#define FORMAT_TIMESTAMP_MAX (6+11+9+4+1)
-#define FORMAT_TIMESTAMP_PRETTY_MAX 256
+#define FORMAT_TIMESTAMP_MAX ((4*4+1)+11+9+4+1) /* weekdays can be unicode */
+#define FORMAT_TIMESTAMP_RELATIVE_MAX 256
 #define FORMAT_TIMESPAN_MAX 64
 
 usec_t now(clockid_t clock);
@@ -71,7 +71,7 @@ usec_t timeval_load(const struct timeval *tv);
 struct timeval *timeval_store(struct timeval *tv, usec_t u);
 
 char *format_timestamp(char *buf, size_t l, usec_t t);
-char *format_timestamp_pretty(char *buf, size_t l, usec_t t);
+char *format_timestamp_relative(char *buf, size_t l, usec_t t);
 char *format_timespan(char *buf, size_t l, usec_t t);
 
 void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t);