table of contents
other versions
- testing 3.2.4+ds-2
- unstable 3.2.4+ds-2
- experimental 3.2.4+git20250218+ds-1
SDL_DateTimeToTime(3) | SDL3 FUNCTIONS | SDL_DateTimeToTime(3) |
NAME¶
SDL_DateTimeToTime - Converts a calendar time to an
SDL_Time
in nanoseconds since the epoch.
HEADER FILE¶
Defined in SDL3/SDL_time.h
SYNOPSIS¶
#include "SDL3/SDL.h"
bool SDL_DateTimeToTime(const SDL_DateTime *dt, SDL_Time *ticks);
DESCRIPTION¶
This function ignores the day_of_week member of the
SDL_DateTime
struct, so it may remain unset.
FUNCTION 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.
SDL 3.2.5 | Simple Directmedia Layer |