X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fptime.h;h=96247e0cd1b27d0c44bec7d1818a05aaef357f51;hb=474ab6fa492a8b1dde963fdecb1edebc111c5fb2;hp=d560ff3ab65d8a41be827433483127f672bf4a7c;hpb=f534061fc8230481a3ca40abc1d1e9b79d3c4976;p=ppastats.git diff --git a/src/ptime.h b/src/ptime.h index d560ff3..96247e0 100644 --- a/src/ptime.h +++ b/src/ptime.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2014 jeanfi@gmail.com + * Copyright (C) 2010-2015 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -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