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_GetDateTimeLocalePreferences - Gets the current preferred date and time format for the system locale.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                SDL_GetDateTimeLocalePreferences(3)

Description

       This  might  be  a "slow" call that has to query the operating system. It's best to ask for this once and
       save the results. However, the preferred formats can change, usually  because  the  user  has  changed  a
       system preference outside of your program.

Function Parameters

dateFormat
              a pointer to the SDL_DateFormat to hold the returned date format, may be NULL.

       timeFormat
              a pointer to the SDL_TimeFormat to hold the returned time format, may be NULL.

Name

       SDL_GetDateTimeLocalePreferences - Gets the current preferred date and time format for the system locale.

Return Value

       for more information.

Synopsis

#include<SDL3/SDL_time.h>boolSDL_GetDateTimeLocalePreferences(SDL_DateFormat*dateFormat,SDL_TimeFormat*timeFormat);

See Also