mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
Github pipeline not in AU tz :D
This commit is contained in:
parent
75920481b1
commit
f9f340b6bf
@ -91,11 +91,11 @@ Converts from unix time
|
||||
|
||||
Running
|
||||
```bash
|
||||
yq --null-input '1675301929 | from_unix'
|
||||
yq --null-input '1675301929 | from_unix | tz("UTC")'
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
2023-02-02T12:38:49+11:00
|
||||
2023-02-02T01:38:49Z
|
||||
```
|
||||
|
||||
## Timezone: from standard RFC3339 format
|
||||
|
@ -42,9 +42,9 @@ var dateTimeOperatorScenarios = []expressionScenario{
|
||||
{
|
||||
description: "From Unix",
|
||||
subdescription: "Converts from unix time",
|
||||
expression: `1675301929 | from_unix`,
|
||||
expression: `1675301929 | from_unix | tz("UTC")`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!timestamp)::2023-02-02T12:38:49+11:00\n",
|
||||
"D0, P[], (!!timestamp)::2023-02-02T01:38:49Z\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user