Function riot_sys::phydat_unix

source ·
pub unsafe extern "C" fn phydat_unix(
    year: i16,
    month: i16,
    day: i16,
    hour: i16,
    minute: i16,
    second: i16,
    offset: i32
) -> i64
Expand description

@brief Convert a date and time (per ISO8601) to a Unix timestamp (seconds since 1970).

@param year Year in the Common Era (CE). Note that 0 is 1 BCE, 1 is 2 BCE, etc. @param month Month of the year. @param day Day of the month. @param hour Hour of the day. @param minute Minute of the hour. @param second Second of the minute. @param offset Timezone offset in seconds.

@return A Unix timestamp (seconds since 1970).