c-ipfs/include/ipfs/util/time.h

13 lines
305 B
C
Raw Normal View History

2016-12-14 01:16:51 +00:00
#ifndef IPFS_TIME_H
#define IPFS_TIME_H
struct stime {
time_t t;
struct timespec ts;
};
int get_gmttime(struct stime *st);
int ipfs_util_time_parse_RFC3339 (struct stime *st, char *s);
char *ipfs_util_time_format_RFC3339 (struct stime *st);
#endif // IPFS_TIME_H