nodejs-polars
    Preparing search index...

    Interface DatetimeSeries

    DateTime functions for Series

    interface DatetimeSeries {
        day(): pl.Series;
        hour(): pl.Series;
        minute(): pl.Series;
        month(): pl.Series;
        nanosecond(): pl.Series;
        ordinalDay(): pl.Series;
        second(): pl.Series;
        strftime(fmt: string): pl.Series;
        timestamp(): pl.Series;
        week(): pl.Series;
        weekday(): pl.Series;
        year(): pl.Series;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Extract day from underlying Date representation. Can be performed on Date and Datetime.

      Returns the day of month starting from 1. The return value ranges from 1 to 31. (The last day of month differs by months.)

      Returns pl.Series

      day as pl.UInt32

    • Extract seconds from underlying DateTime representation. Can be performed on Datetime.

      Returns the number of nanoseconds since the whole non-leap second. The range from 1,000,000,000 to 1,999,999,999 represents the leap second.

      Returns pl.Series

      Nanosecond as UInt32

    • Extract ordinal day from underlying Date representation. Can be performed on Date and Datetime.

      Returns the day of year starting from 1. The return value ranges from 1 to 366. (The last day of year differs by years.)

      Returns pl.Series

      Day as UInt32

    • Extract the week from the underlying Date representation. Can be performed on Date and Datetime

      Returns the ISO week number starting from 1. The return value ranges from 1 to 53. (The last week of year differs by years.)

      Returns pl.Series

      Week number as UInt32