SDL_DateTimeToTime3
Converts a calendar time to an sdl_time in nanoseconds since the epoch.
Usage
#include "SDL3/SDL.h"
bool SDL_DateTimeToTime(const SDL_DateTime *dt, SDL_Time *ticks);
Header file
Defined in SDL3/SDL_time.h
Overview
This function ignores the day_of_week member of the
SDL_DateTime
struct, so it may remain unset.
Function parameters
dt
|
the source |
|---|---|
ticks
|
the resulting |
Return value
Returns true on success or false on failure; call
SDL_GetError () for more information.