libgit2

git_commit_time_offset

Version:

Get the commit timezone offset (i.e. committer's preferred timezone) of a commit.

Signature

int git_commit_time_offset(git_commit *commit);

Parameters

git_commit *
In
commit

a previously loaded commit.

Returns

int

positive or negative timezone offset, in minutes from UTC

Versions