riot_sys

Function phydat_date_time_to_unix

Source
pub unsafe extern "C" fn phydat_date_time_to_unix(
    date: *mut phydat_t,
    time: *mut phydat_t,
    offset_seconds: i32,
) -> i64
Expand description

@brief Convert a date and time contained in phydat structs to a Unix timestamp. See phydat_unix() for the date notation and peculiarities.

@param date Date to use in the timestamp. @param time Time to use in the timestamp. @param offset_seconds Timezone offset in seconds to use in the timestamp.

@return A unix timestamp