Timezone sets default timezone for date() and now() builtin functions.
(name string)
| 207 | |
| 208 | // Timezone sets default timezone for date() and now() builtin functions. |
| 209 | func Timezone(name string) Option { |
| 210 | tz, err := time.LoadLocation(name) |
| 211 | if err != nil { |
| 212 | panic(err) |
| 213 | } |
| 214 | return Patch(patcher.WithTimezone{ |
| 215 | Location: tz, |
| 216 | }) |
| 217 | } |
| 218 | |
| 219 | // MaxNodes sets the maximum number of nodes allowed in the expression. |
| 220 | // By default, the maximum number of nodes is conf.DefaultMaxNodes. |
searching dependent graphs…