mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
20 lines
298 B
Markdown
20 lines
298 B
Markdown
---
|
|
title: dfr get-year
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
Gets year from date
|
|
|
|
## Signature
|
|
|
|
```> dfr get-year ```
|
|
|
|
## Examples
|
|
|
|
Returns year from a date
|
|
```shell
|
|
> let dt = ('2020-08-04T16:39:18+00:00' | into datetime -z 'UTC');
|
|
let df = ([$dt $dt] | dfr to-df);
|
|
$df | dfr get-year
|
|
```
|