from_nanoseconds

Aliases: timestamp_ns, nanoseconds (deprecated).

from_nanoseconds(number: numeric) -> timestamp

Given a numeric value representing nanoseconds since epoch, return a timestamp of that point in time.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col out_ns:from_nanoseconds(in_fld)

Treat in_fld as nanoseconds since epoch, and set out_ns to a timestamp representing that time.