MCPcopy Create free account
hub / github.com/git-bug/git-bug / ParseTimestamp

Function ParseTimestamp

repository/config.go:63–70  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

61}
62
63func ParseTimestamp(s string) (time.Time, error) {
64 timestamp, err := strconv.Atoi(s)
65 if err != nil {
66 return time.Time{}, err
67 }
68
69 return time.Unix(int64(timestamp), 0), nil
70}
71
72// mergeConfig is a helper to easily support RepoConfig.AnyConfig()
73// from two separate local and global Config

Callers 2

ReadTimestampMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected