# CategoryTime

SDL realtime clock and date/time routines.

There are two data types that are used in this category:
[SDL_Time](SDL_Time), which represents the nanoseconds since a specific
moment (an "epoch"), and [SDL_DateTime](SDL_DateTime), which breaks time
down into human-understandable components: years, months, days, hours, etc.

Much of the functionality is involved in converting those two types to
other useful forms.

<!-- END CATEGORY DOCUMENTATION -->

## Functions

<!-- DO NOT HAND-EDIT CATEGORY LISTS, THEY ARE AUTOGENERATED AND WILL BE OVERWRITTEN, BASED ON TAGS IN INDIVIDUAL PAGE FOOTERS. EDIT THOSE INSTEAD. -->
<!-- BEGIN CATEGORY LIST: CategoryTime, CategoryAPIFunction -->
- [SDL_DateTimeToTime](SDL_DateTimeToTime)
- [SDL_GetCurrentTime](SDL_GetCurrentTime)
- [SDL_GetDateTimeLocalePreferences](SDL_GetDateTimeLocalePreferences)
- [SDL_GetDayOfWeek](SDL_GetDayOfWeek)
- [SDL_GetDayOfYear](SDL_GetDayOfYear)
- [SDL_GetDaysInMonth](SDL_GetDaysInMonth)
- [SDL_TimeFromWindows](SDL_TimeFromWindows)
- [SDL_TimeToDateTime](SDL_TimeToDateTime)
- [SDL_TimeToWindows](SDL_TimeToWindows)
<!-- END CATEGORY LIST -->

## Datatypes

<!-- DO NOT HAND-EDIT CATEGORY LISTS, THEY ARE AUTOGENERATED AND WILL BE OVERWRITTEN, BASED ON TAGS IN INDIVIDUAL PAGE FOOTERS. EDIT THOSE INSTEAD. -->
<!-- BEGIN CATEGORY LIST: CategoryTime, CategoryAPIDatatype -->
- (none.)
<!-- END CATEGORY LIST -->

## Structs

<!-- DO NOT HAND-EDIT CATEGORY LISTS, THEY ARE AUTOGENERATED AND WILL BE OVERWRITTEN, BASED ON TAGS IN INDIVIDUAL PAGE FOOTERS. EDIT THOSE INSTEAD. -->
<!-- BEGIN CATEGORY LIST: CategoryTime, CategoryAPIStruct -->
- [SDL_DateTime](SDL_DateTime)
<!-- END CATEGORY LIST -->

## Enums

<!-- DO NOT HAND-EDIT CATEGORY LISTS, THEY ARE AUTOGENERATED AND WILL BE OVERWRITTEN, BASED ON TAGS IN INDIVIDUAL PAGE FOOTERS. EDIT THOSE INSTEAD. -->
<!-- BEGIN CATEGORY LIST: CategoryTime, CategoryAPIEnum -->
- [SDL_DateFormat](SDL_DateFormat)
- [SDL_TimeFormat](SDL_TimeFormat)
<!-- END CATEGORY LIST -->

## Macros

<!-- DO NOT HAND-EDIT CATEGORY LISTS, THEY ARE AUTOGENERATED AND WILL BE OVERWRITTEN, BASED ON TAGS IN INDIVIDUAL PAGE FOOTERS. EDIT THOSE INSTEAD. -->
<!-- BEGIN CATEGORY LIST: CategoryTime, CategoryAPIMacro -->
- (none.)
<!-- END CATEGORY LIST -->


----
[CategoryAPICategory](CategoryAPICategory)


