MCPcopy Create free account
hub / github.com/AdRoll/baker / FormatTimeConfig

Struct FormatTimeConfig

filter/format_time.go:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62type FormatTimeConfig struct {
63 SrcField string `help:"Field name of the input time" required:"true"`
64 DstField string `help:"Field name of the output time" required:"true"`
65 SrcFormat string `help:"Format of the input time" required:"false" default:"UnixDate"`
66 DstFormat string `help:"Format of the output time" required:"false" default:"unixms"`
67}
68
69func (cfg *FormatTimeConfig) fillDefaults() {
70 if cfg.SrcFormat == "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected