MCPcopy Index your code
hub / github.com/git-bug/git-bug / parseSince

Function parseSince

commands/bridge/bridge_pull.go:147–154  ·  view source on GitHub ↗
(since string)

Source from the content-addressed store, hash-verified

145}
146
147func parseSince(since string) (time.Time, error) {
148 duration, err := time.ParseDuration(since)
149 if err == nil {
150 return time.Now().Add(-duration), nil
151 }
152
153 return dateparse.ParseLocal(since)
154}

Callers 1

runBridgePullFunction · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected