to_local
An instant as the wall-clock time of option zone (default: the column's zone).
Flags
| Flag | Value |
|---|---|
| Kind | scalar |
| Nulls | a null argument gives null |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
Example
A pipeline from the language's tested corpus that uses to_local, over the example tables.
from orders
derive {oslo = to_local(placed, zone: "Europe/Oslo"), back = assume_timezone(to_local(placed, zone: "Europe/Oslo"), zone: "Europe/Oslo", ambiguous: "earlier", nonexistent: "shift_forward")}In a plan:
{
"args": [
{
"col": 6
}
],
"fn": "to_local",
"options": {
"zone": "Europe/Oslo"
}
}