diff options
author | Ben Straub <bstraub@github.com> | 2012-06-06 12:25:22 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-06-06 12:25:22 -0700 |
commit | 8a385c0482aff009738f509892863707592434b9 (patch) | |
tree | 9596ac3acca99274393c0f8e68f9ee0386088eaf /src/util.h | |
parent | 2c2cde47b8241e66cacd535d5f8c269d623a47f0 (diff) | |
download | libgit2-8a385c0482aff009738f509892863707592434b9.tar.gz |
Move git__date_parse declaration to util.h.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index c4a55f524..eed2bc80c 100644 --- a/src/util.h +++ b/src/util.h @@ -230,4 +230,14 @@ GIT_INLINE(bool) git__iswildcard(int c) */ extern int git__parse_bool(int *out, const char *value); +/* + * Parse a string into a value as a git_time_t. + * + * Sample valid input: + * - "yesterday" + * - "July 17, 2003" + * - "2003-7-17 08:23" + */ +int git__date_parse(git_time_t *out, const char *date); + #endif /* INCLUDE_util_h__ */ |