Converts a calendar time to an SDL_Time in nanoseconds since the epoch.
Defined in <SDL3/SDL_time.h>
dt | the source SDL_DateTime |
ticks | the resulting SDL_Time |
Returns 0 on success or -1 on error; call SDL_GetError() for more information.
This function ignores the day_of_week member of the SDL_DateTime struct, so it may remain unset.
This function is available since SDL 3.0.0.