[−][src]Function spotify_oauth::datetime_to_timestamp
pub fn datetime_to_timestamp(elapsed: u32) -> i64
Convert date and time to a unix timestamp.
Example
// Uses elapsed seconds and the current timestamp to return a timestamp offset by the seconds. let timestamp = datetime_to_timestamp(3600);