---
name: "SDL_DateTime"
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_DateTime"
---

# SDL\_DateTime(3type)

A structure holding a calendar date and time broken down into its components.

## NAME

SDL\_DateTime - A structure holding a calendar date and time broken down into its components.

## HEADER FILE

Defined in SDL3/SDL\_time.h

## SYNOPSIS

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

**typedef struct SDL\_DateTime** **{**     **int year;                  /\*\*\< Year \*/**     **int month;                 /\*\*\< Month \[01-12\] \*/**     **int day;                   /\*\*\< Day of the month \[01-31\] \*/**     **int hour;                  /\*\*\< Hour \[0-23\] \*/**     **int minute;                /\*\*\< Minute \[0-59\] \*/**     **int second;                /\*\*\< Seconds \[0-60\] \*/**     **int nanosecond;            /\*\*\< Nanoseconds \[0-999999999\] \*/**     **int day\_of\_week;           /\*\*\< Day of the week \[0-6\] (0 being Sunday) \*/**     **int utc\_offset;            /\*\*\< Seconds east of UTC \*/** **} SDL\_DateTime;**

## AVAILABILITY

This struct is available since SDL 3.2.0.
