Function SDL_DateTimeToTime

pub unsafe extern "C" fn SDL_DateTimeToTime(
    dt: *const SDL_DateTime,
    ticks: *mut i64,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Converts a calendar time to an SDL_Time in nanoseconds since the epoch.

This function ignores the day_of_week member of the SDL_DateTime struct, so it may remain unset.

§Parameters

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.