---
name: "SDL_Time"
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_Time"
---

# SDL\_Time(3type)

SDL times are signed, 64-bit integers representing nanoseconds since the Unix epoch (Jan 1, 1970).

## NAME

SDL\_Time - SDL times are signed, 64-bit integers representing nanoseconds since the Unix epoch (Jan 1, 1970).

## HEADER FILE

Defined in SDL3/SDL\_stdinc.h

## SYNOPSIS

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

**typedef Sint64 SDL\_Time;** **#define SDL\_MAX\_TIME SDL\_MAX\_SINT64** **#define SDL\_MIN\_TIME SDL\_MIN\_SINT64**

## DESCRIPTION

They can be converted between POSIX time\_t values with

**SDL\_NS\_TO\_SECONDS** () and

**SDL\_SECONDS\_TO\_NS** (), and between Windows FILETIME values with  **SDL\_TimeToWindows** () and

**SDL\_TimeFromWindows** ().

## AVAILABILITY

This macro is available since SDL 3.2.0.

## SEE ALSO

**•**(3), **SDL\_MAX\_SINT64**(3), **•**(3), **SDL\_MIN\_SINT64**(3)
