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_TimeToDateTime - Converts an SDL_Time

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                              SDL_TimeToDateTime(3)

Function Parameters

ticks  the SDL_Time
               to be converted.

       dt     the resulting SDL_DateTime .

       localTime
              the resulting SDL_DateTime
               will  be  expressed  in  local  time  if true, otherwise it will be in Universal Coordinated Time
              (UTC).

Header File

       Defined in SDL3/SDL_time.h

Name

       SDL_TimeToDateTime - Converts an SDL_Time
        in nanoseconds since the epoch to a calendar time in the SDL_DateTime
        format.

Return Value

       Returns true on success or false on failure; call

       SDL_GetError () for more information.

Synopsis

#include"SDL3/SDL.h"boolSDL_TimeToDateTime(SDL_Timeticks,SDL_DateTime*dt,boollocalTime);

See Also