Man page - sdl_datetimetotime(3)

Packages contas this manual

Manual

SDL_DateTimeToTime(3) SDL3 FUNCTIONS SDL_DateTimeToTime(3)

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

Defined in SDL3/SDL_time.h

#include "SDL3/SDL.h"
bool SDL_DateTimeToTime(const SDL_DateTime *dt, SDL_Time *ticks);

This function ignores the day_of_week member of the

SDL_DateTime
struct, so it may remain unset.

the source SDL_DateTime .
the resulting SDL_Time .

Returns true on success or false on failure; call

SDL_GetError () for more information.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer