SDL_TimeFormat(3type)
π NAME π
okay so bestie, this is SDL_TimeFormat, from the SDL3 DATATYPES manual β aka SDL_TimeFormat(3type). it is literally the preferred time format of the current system locale. that's the whole vibe: your locale has a fave, and this enum tells you if it's 24-hour or 12-hour. π°οΈβ¨
β¨ SYNOPSIS β¨
first you include the header, then the enum pulls up like this:
#include <SDL3/SDL_time.h>
typedef enum SDL_TimeFormat
{
SDL_TIME_FORMAT_24HR = 0, /**< 24 hour time */
SDL_TIME_FORMAT_12HR = 1 /**< 12 hour time */
} SDL_TimeFormat;
lowkey iconic. SDL_TIME_FORMAT_24HR is 0, and its comment says 24 hour time. SDL_TIME_FORMAT_12HR is 1, and its comment says 12 hour time. no cap. π
π AVAILABILITY π
this enum has been available since SDL 3.2.0. fr fr, that's when it entered the chat. π«Ά
π SEE ALSO π
SDL_GetDateTimeLocalePreferences(3)β bestie, go read this one next, it's giving related-info energy. π
and that's the vibe check: brought to you by Simple Directmedia Layer, SDL 3.4.18, and the SDL_TimeFormat(3type) page. no date line in the footer, just those credits, and honestly? iconic. πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms