mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +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
|
Running
|
||||||
```bash
|
```bash
|
||||||
yq --null-input '1675301929 | from_unix'
|
yq --null-input '1675301929 | from_unix | tz("UTC")'
|
||||||
```
|
```
|
||||||
will output
|
will output
|
||||||
```yaml
|
```yaml
|
||||||
2023-02-02T12:38:49+11:00
|
2023-02-02T01:38:49Z
|
||||||
```
|
```
|
||||||
|
|
||||||
## Timezone: from standard RFC3339 format
|
## Timezone: from standard RFC3339 format
|
||||||
|
@ -42,9 +42,9 @@ var dateTimeOperatorScenarios = []expressionScenario{
|
|||||||
{
|
{
|
||||||
description: "From Unix",
|
description: "From Unix",
|
||||||
subdescription: "Converts from unix time",
|
subdescription: "Converts from unix time",
|
||||||
expression: `1675301929 | from_unix`,
|
expression: `1675301929 | from_unix | tz("UTC")`,
|
||||||
expected: []string{
|
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