merged plib
[ppastats.git] / src / ptime.h
index d560ff3..eac7342 100644 (file)
 #ifndef _P_TIME_H
 #define _P_TIME_H
 
-#define P_TIME_VER 1
-
 #include <time.h>
 
-char *get_current_time_str();
-char *time_to_str(time_t *t);
+extern const int P_TIME_VER;
+
+char *get_current_ISO8601_time();
+
+char *time_to_ISO8601_time(time_t *);
+char *time_to_ISO8601_date(time_t *);
+
+char *tm_to_ISO8601_date(struct tm *);
+char *tm_to_ISO8601_time(struct tm *);
 
 #endif