MCPcopy Create free account
hub / github.com/libgit2/git2go / Offset

Method Offset

signature.go:34–37  ·  view source on GitHub ↗

Offset returns the time zone offset of v.When in minutes, which is what git wants.

()

Source from the content-addressed store, hash-verified

32
33// Offset returns the time zone offset of v.When in minutes, which is what git wants.
34func (v *Signature) Offset() int {
35 _, offset := v.When.Zone()
36 return offset / 60
37}
38
39func (sig *Signature) toC() (*C.git_signature, error) {
40 if sig == nil {

Callers 1

toCMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected