polars get-nanosecond for dataframe

Gets nanosecond from date.

Signature

> polars get-nanosecond {flags}

Input/output types:

inputoutput
anyany

Examples

Returns nanosecond from a date

> let dt = ('2020-08-04T16:39:18+00:00' | into datetime --timezone 'UTC');
    let df = ([$dt $dt] | polars into-df);
    $df | polars get-nanosecond
╭───┬───╮
 # │ 0 │
├───┼───┤
 0 0
 1 0
╰───┴───╯