MCPcopy Create free account
hub / github.com/zalando/skipper / parseUnix

Function parseUnix

predicates/interval/interval.go:109–119  ·  view source on GitHub ↗
(arg interface{}, t *time.Time)

Source from the content-addressed store, hash-verified

107}
108
109func parseUnix(arg interface{}, t *time.Time) bool {
110 switch a := arg.(type) {
111 case float64:
112 *t = time.Unix(int64(a), 0)
113 return true
114 case int64:
115 *t = time.Unix(a, 0)
116 return true
117 }
118 return false
119}
120
121func parseRFC(arg interface{}, t *time.Time) bool {
122 if s, ok := arg.(string); ok {

Callers 1

CreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…