MCPcopy Create free account
hub / github.com/Danny-Dasilva/CycleTLS / ParseDateString

Function ParseDateString

tests/golang_hold/https.go:90–95  ·  view source on GitHub ↗

ParseDateString takes a string and passes it through Approxidate Parses into a time.Time

(dt string)

Source from the content-addressed store, hash-verified

88// ParseDateString takes a string and passes it through Approxidate
89// Parses into a time.Time
90func ParseDateString(dt string) (time.Time, error) {
91
92 const layout = "Mon, 02-Jan-2006 15:04:05 MST"
93 fmt.Println(layout, dt, "end")
94 return time.Parse(layout, dt)
95}
96
97func main() {
98

Callers 1

UnmarshalJSONMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…