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 πŸŽ€


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