X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ppastats.git;a=blobdiff_plain;f=src%2Fptime.h;h=eac734298dc533490efa5e7f33456b7cf4f5a99d;hp=d560ff3ab65d8a41be827433483127f672bf4a7c;hb=12b0e2c57c55b4d3086ef920deda5400016339f2;hpb=cc8747204cb629baf970ae25d58c7c8eedc72bd6 diff --git a/src/ptime.h b/src/ptime.h index d560ff3..eac7342 100644 --- a/src/ptime.h +++ b/src/ptime.h @@ -19,11 +19,16 @@ #ifndef _P_TIME_H #define _P_TIME_H -#define P_TIME_VER 1 - #include -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