SDL_DateTimeToTime - Converts a calendar time to an SDL_Time in nanoseconds since the epoch.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.20 SDL_DateTimeToTime(3)
Description
This function ignores the day_of_week member of the SDL_DateTime struct, so it may remain unset.
Function Parameters
dt the source SDL_DateTime.
ticks the resulting SDL_Time.
Name
SDL_DateTimeToTime - Converts a calendar time to an SDL_Time in nanoseconds since the epoch.
Return Value
for more information.
Synopsis
#include<SDL3/SDL_time.h>boolSDL_DateTimeToTime(constSDL_DateTime*dt,SDL_Time*ticks);
