Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 554555a

Browse files
committed
Merge branch 'lt/approxidate'
* lt/approxidate: fix approxidate parsing of relative months and years tests: add date printing and parsing tests refactor test-date interface Add date formatting and parsing functions relative to a given time Further 'approxidate' improvements Improve on 'approxidate' Conflicts: date.c
2 parents 909beb8 + 931e8e2 commit 554555a

File tree

4 files changed

+316
-107
lines changed

4 files changed

+316
-107
lines changed

cache.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,14 @@ enum date_mode {
731731
};
732732

733733
const char *show_date(unsigned long time, int timezone, enum date_mode mode);
734+
const char *show_date_relative(unsigned long time, int tz,
735+
const struct timeval *now,
736+
char *timebuf,
737+
size_t timebuf_size);
734738
int parse_date(const char *date, char *buf, int bufsize);
735739
void datestamp(char *buf, int bufsize);
736740
unsigned long approxidate(const char *);
741+
unsigned long approxidate_relative(const char *date, const struct timeval *now);
737742
enum date_mode parse_date_format(const char *format);
738743

739744
#define IDENT_WARN_ON_NO_NAME 1

0 commit comments

Comments
 (0)