mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
Fixed broken link
This commit is contained in:
parent
c3f4bb8156
commit
d16ee386d2
@ -13,11 +13,11 @@ To specify a custom parsing format, use the `with_dtf` operator. The first param
|
|||||||
yq 'with_dtf("myformat"; .a + "3h" | tz("Australia/Melbourne"))'
|
yq 'with_dtf("myformat"; .a + "3h" | tz("Australia/Melbourne"))'
|
||||||
```
|
```
|
||||||
|
|
||||||
See https://pkg.go.dev/time#pkg-constants for examples of formatting options.
|
See the [library docs](https://pkg.go.dev/time#pkg-constants) for examples of formatting options.
|
||||||
|
|
||||||
|
|
||||||
## Timezones
|
## Timezones
|
||||||
This uses golangs built in LoadLocation function to parse timezones strings. See https://pkg.go.dev/time#LoadLocation for more details.
|
This uses golangs built in LoadLocation function to parse timezones strings. See the [library docs](https://pkg.go.dev/time#LoadLocation) for more details.
|
||||||
|
|
||||||
|
|
||||||
## Durations
|
## Durations
|
||||||
@ -156,7 +156,7 @@ a: 2021-01-01T03:10:00Z
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Date subtraction
|
## Date subtraction
|
||||||
You can subtract durations from dates. Assumes RFC3339 date time format, see [date-time operators](https://mikefarah.gitbook.io/yq/operators/date-time-operators) for more information.
|
You can subtract durations from dates. Assumes RFC3339 date time format, see [date-time operators](https://mikefarah.gitbook.io/yq/operators/datetime#date-time-formattings) for more information.
|
||||||
|
|
||||||
Given a sample.yml file of:
|
Given a sample.yml file of:
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -13,11 +13,11 @@ To specify a custom parsing format, use the `with_dtf` operator. The first param
|
|||||||
yq 'with_dtf("myformat"; .a + "3h" | tz("Australia/Melbourne"))'
|
yq 'with_dtf("myformat"; .a + "3h" | tz("Australia/Melbourne"))'
|
||||||
```
|
```
|
||||||
|
|
||||||
See https://pkg.go.dev/time#pkg-constants for examples of formatting options.
|
See the [library docs](https://pkg.go.dev/time#pkg-constants) for examples of formatting options.
|
||||||
|
|
||||||
|
|
||||||
## Timezones
|
## Timezones
|
||||||
This uses golangs built in LoadLocation function to parse timezones strings. See https://pkg.go.dev/time#LoadLocation for more details.
|
This uses golangs built in LoadLocation function to parse timezones strings. See the [library docs](https://pkg.go.dev/time#LoadLocation) for more details.
|
||||||
|
|
||||||
|
|
||||||
## Durations
|
## Durations
|
||||||
|
@ -77,7 +77,7 @@ var dateTimeOperatorScenarios = []expressionScenario{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "Date subtraction",
|
description: "Date subtraction",
|
||||||
subdescription: "You can subtract durations from dates. Assumes RFC3339 date time format, see [date-time operators](https://mikefarah.gitbook.io/yq/operators/date-time-operators) for more information.",
|
subdescription: "You can subtract durations from dates. Assumes RFC3339 date time format, see [date-time operators](https://mikefarah.gitbook.io/yq/operators/datetime#date-time-formattings) for more information.",
|
||||||
document: `a: 2021-01-01T03:10:00Z`,
|
document: `a: 2021-01-01T03:10:00Z`,
|
||||||
expression: `.a -= "3h10m"`,
|
expression: `.a -= "3h10m"`,
|
||||||
expected: []string{
|
expected: []string{
|
||||||
|
Loading…
Reference in New Issue
Block a user