SDL_DateTimeToTime(3)

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 SDL_DateTime .

ticks

the resulting SDL_Time .

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.