dfr strftime for dataframe

Formats date based on string rule.

WARNING

Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Signature

> dfr strftime {flags} (fmt)

Parameters

  • fmt: Format rule

Input/output types:

inputoutput
anyany

Examples

Formats date

> let dt = ('2020-08-04T16:39:18+00:00' | into datetime --timezone 'UTC');
    let df = ([$dt $dt] | dfr into-df);
    $df | dfr strftime "%Y/%m/%d"
╭───┬────────────╮
 # │     0      │
├───┼────────────┤
 0 2020/08/04
 1 2020/08/04
╰───┴────────────╯