diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-31 22:11:36 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-31 22:11:36 -0700 |
commit | 554555ac7da0b9b78bd97cff05daa60498eb1bba (patch) | |
tree | 3eb0fceccbc644ff34cb66e84ec371b5047eabeb /cache.h | |
parent | 909beb860b98d51eeb26ff1f97bfad40ef7d5970 (diff) | |
parent | 931e8e27d94dbc24abc9c969ae0b414e0361abff (diff) | |
download | git-554555ac7da0b9b78bd97cff05daa60498eb1bba.tar.gz |
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
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |