SDL 3.0
SDL_DateTime Struct Reference

#include <SDL_time.h>

Data Fields

int year
 
int month
 
int day
 
int hour
 
int minute
 
int second
 
int nanosecond
 
int day_of_week
 
int utc_offset
 

Detailed Description

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

Since
This struct is available since SDL 3.0.0.

Definition at line 46 of file SDL_time.h.

Field Documentation

◆ day

int SDL_DateTime::day

Day of the month [01-31]

Definition at line 50 of file SDL_time.h.

◆ day_of_week

int SDL_DateTime::day_of_week

Day of the week [0-6] (0 being Sunday)

Definition at line 55 of file SDL_time.h.

◆ hour

int SDL_DateTime::hour

Hour [0-23]

Definition at line 51 of file SDL_time.h.

◆ minute

int SDL_DateTime::minute

Minute [0-59]

Definition at line 52 of file SDL_time.h.

◆ month

int SDL_DateTime::month

Month [01-12]

Definition at line 49 of file SDL_time.h.

◆ nanosecond

int SDL_DateTime::nanosecond

Nanoseconds [0-999999999]

Definition at line 54 of file SDL_time.h.

◆ second

int SDL_DateTime::second

Seconds [0-60]

Definition at line 53 of file SDL_time.h.

◆ utc_offset

int SDL_DateTime::utc_offset

Seconds east of UTC

Definition at line 56 of file SDL_time.h.

◆ year

int SDL_DateTime::year

Year

Definition at line 48 of file SDL_time.h.


The documentation for this struct was generated from the following file: