gettime
gettime(time_t *res, const char *p, int *flags, int dowarn, int flag)
gettime(const char *name, int64_t *ret)