MCPcopy Create free account
hub / github.com/TalkingData/owl / generateTime

Function generateTime

controller/notify.go:161–167  ·  view source on GitHub ↗
(nowDateTime time.Time, onlyTime string)

Source from the content-addressed store, hash-verified

159}
160
161func generateTime(nowDateTime time.Time, onlyTime string) time.Time {
162 newTime, err := time.Parse("15:04:05", onlyTime)
163 if err != nil {
164 lg.Error(err.Error())
165 }
166 return time.Date(nowDateTime.Year(), nowDateTime.Month(), nowDateTime.Day(), newTime.Hour(), newTime.Minute(), newTime.Second(), 0, time.Local)
167}
168
169func broadcast(event *types.StrategyEvent, subject, content string, action *types.Action) {
170 users := make(map[int]*types.User)

Callers 1

actionFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected