---
name: "SDL_TimeFormat"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_TimeFormat"
---

# SDL\_TimeFormat(3type)

The preferred time format of the current system locale.

## NAME

SDL\_TimeFormat - The preferred time format of the current system locale.

## HEADER FILE

Defined in SDL3/SDL\_time.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef enum SDL\_TimeFormat** **{**     **SDL\_TIME\_FORMAT\_24HR = 0, /\*\*\< 24 hour time \*/**     **SDL\_TIME\_FORMAT\_12HR = 1  /\*\*\< 12 hour time \*/** **} SDL\_TimeFormat;**

## AVAILABILITY

This enum is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GetDateTimeLocalePreferences**(3)](/SDL_GetDateTimeLocalePreferences/3.md)
