How do I create a Time from a string in libgit2?

Viewed 48

I'm trying to make a Git commit at a specific time. However, in the Rust docs, I don't see an easy way to create a new Time object. In command line Git, I can set the GIT_COMMITTER_DATE environment variable, but there doesn't seem to be a way to do this, in-band or out-of-band, with libgit2.

1 Answers
Related