MCPcopy Create free account
hub / github.com/cel-expr/cel-go / StrictTimestampParsing

Function StrictTimestampParsing

cel/options.go:1150–1152  ·  view source on GitHub ↗

StrictTimestampParsing controls how strictly timestamp strings and numeric timezone offsets are validated. Strict parsing is the default and is equivalent to StrictTimestampParsing(true): - timestamp(string) accepts only RFC 3339 date-time strings. Inputs which time.Parse accepts but RFC 3339 forb

(enabled bool)

Source from the content-addressed store, hash-verified

1148// evaluating expressions, or data, that were accepted by earlier releases. The relaxed rules also
1149// apply to timestamp literal validation (see ValidateTimestampLiterals).
1150func StrictTimestampParsing(enabled bool) EnvOption {
1151 return features(featureStrictTimestampParsing, enabled)
1152}
1153
1154// features sets the given feature flags. See list of Feature constants above.
1155func features(flag int, enabled bool) EnvOption {

Calls 1

featuresFunction · 0.85