Skip to content

Commit

Permalink
Merge branch 'lt/approxidate'
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Junio C Hamano committed Sep 1, 2009
2 parents 909beb8 + 931e8e2 commit 554555a
Show file tree
Hide file tree
Showing 4 changed files with 316 additions and 107 deletions.
5 changes: 5 additions & 0 deletions cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,14 @@ enum date_mode {
};

const char *show_date(unsigned long time, int timezone, enum date_mode mode);
const char *show_date_relative(unsigned long time, int tz,
const struct timeval *now,
char *timebuf,
size_t timebuf_size);
int parse_date(const char *date, char *buf, int bufsize);
void datestamp(char *buf, int bufsize);
unsigned long approxidate(const char *);
unsigned long approxidate_relative(const char *date, const struct timeval *now);
enum date_mode parse_date_format(const char *format);

#define IDENT_WARN_ON_NO_NAME 1
Expand Down
Loading

0 comments on commit 554555a

Please sign in to comment.