Some changes at util/time

This commit is contained in:
Jose Marcial Vieira Bisneto 2016-12-21 07:14:21 -03:00
parent 41b7579f21
commit 6b9d205ef2
2 changed files with 9 additions and 10 deletions

View file

@ -1,5 +1,14 @@
#ifndef IPFS_TIME_H
#define IPFS_TIME_H
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif // __USE_XOPEN
#ifndef __USE_ISOC11
#define __USE_ISOC11
#endif // __USE_ISOC11
#include <time.h>
int ipfs_util_time_parse_RFC3339 (struct timespec *ts, char *s);
char *ipfs_util_time_format_RFC3339 (struct timespec *ts);