]>
git.proxmox.com Git - libgit2.git/blob - src/date.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_date_h__
8 #define INCLUDE_date_h__
14 * Parse a string into a value as a git_time_t.
21 extern int git_date_parse(git_time_t
*out
, const char *date
);
24 * Format a git_time as a RFC2822 string
26 * @param out buffer to store formatted date
27 * @param time the time to be formatted
28 * @param offset the timezone offset
29 * @return 0 if successful; -1 on error
31 extern int git_date_rfc2822_fmt(git_str
*out
, git_time_t time
, int offset
);