SDL_TimeToDateTime - Converts an SDL_Time
Contents
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);
