forked from extern/nushell
28 lines
430 B
Markdown
28 lines
430 B
Markdown
---
|
|
title: into duration
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
Convert value to duration
|
|
|
|
## Signature
|
|
|
|
```> into duration ...rest```
|
|
|
|
## Parameters
|
|
|
|
- `...rest`: column paths to convert to duration (for table input)
|
|
|
|
## Examples
|
|
|
|
Convert string to duration in table
|
|
```shell
|
|
> echo [[value]; ['1sec'] ['2min'] ['3hr'] ['4day'] ['5wk']] | into duration value
|
|
```
|
|
|
|
Convert string to duration
|
|
```shell
|
|
> '7min' | into duration
|
|
```
|