spark_connect_rs::functions

Function unix_timestamp

Source
pub fn unix_timestamp(
    timestamp: Option<impl Into<Column>>,
    format: Option<&str>,
) -> Column
Expand description

Convert time string with given pattern (‘yyyy-MM-dd HH:mm:ss’, by default) to Unix time stamp (in seconds), using the default timezone and the default locale, returns null if failed.