Merge branch 'jn/parse-date-basic'
* jn/parse-date-basic: Export parse_date_basic() to convert a date string to timestamp
This commit is contained in:
1
cache.h
1
cache.h
@ -811,6 +811,7 @@ const char *show_date_relative(unsigned long time, int tz,
|
||||
char *timebuf,
|
||||
size_t timebuf_size);
|
||||
int parse_date(const char *date, char *buf, int bufsize);
|
||||
int parse_date_basic(const char *date, unsigned long *timestamp, int *offset);
|
||||
void datestamp(char *buf, int bufsize);
|
||||
#define approxidate(s) approxidate_careful((s), NULL)
|
||||
unsigned long approxidate_careful(const char *, int *);
|
||||
|
||||
Reference in New Issue
Block a user