Sha256: d24c6276fb168a0b7e9ed05ebcbb4a3ea8174588f348edb1be6ca09b8f6be2e3

Contents?: true

Size: 804 Bytes

Versions: 12

Compression:

Stored size: 804 Bytes

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
#ifndef INCLUDE_date_h__
#define INCLUDE_date_h__

#include "util.h"
#include "str.h"

/*
 * Parse a string into a value as a git_time_t.
 *
 * Sample valid input:
 * - "yesterday"
 * - "July 17, 2003"
 * - "2003-7-17 08:23"
 */
extern int git_date_parse(git_time_t *out, const char *date);

/*
 * Format a git_time as a RFC2822 string
 *
 * @param out buffer to store formatted date
 * @param time the time to be formatted
 * @param offset the timezone offset
 * @return 0 if successful; -1 on error
 */
extern int git_date_rfc2822_fmt(git_str *out, git_time_t time, int offset);

#endif

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rugged-1.7.2 vendor/libgit2/src/util/date.h
rugged-1.6.5 vendor/libgit2/src/util/date.h
rugged-1.7.1 vendor/libgit2/src/util/date.h
rugged-1.6.3 vendor/libgit2/src/util/date.h
rugged-1.6.2 vendor/libgit2/src/util/date.h
rugged-1.5.1 vendor/libgit2/src/util/date.h
rugged-1.4.5 vendor/libgit2/src/date.h
rugged-1.5.0.1 vendor/libgit2/src/util/date.h
rugged-1.5.0 vendor/libgit2/src/util/date.h
rugged-1.4.4 vendor/libgit2/src/date.h
rugged-1.4.3 vendor/libgit2/src/date.h
rugged-1.4.2 vendor/libgit2/src/date.h