logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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);

See Also