semantique.processor.utils.datetime64_as_unix

semantique.processor.utils.datetime64_as_unix#

semantique.processor.utils.datetime64_as_unix(x)[source]#

Convert datetime64 values in an array to unix time values.

Unix time values are the number of seconds since 1970-01-01.

Parameters:

x (xarray.DataArray or numpy.array) – The input array containing numpy.datetime64 values.

Returns:

numpy.array