---
name: "file_time"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/file_time"
---

# file\_time(3alleg)

Returns the modification time of a file. Allegro game programming library.

## NAME

file\_time - Returns the modification time of a file. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**time\_t file\_time(const char \*filename);**

## DESCRIPTION

Returns the modification time (number of seconds since 00:00:00 GMT  1/1/1970) of a file. If the file does not exist or an error occurs, it  will return zero and store the system error code in errno.

## SEE ALSO

[**file\_exists**(3alleg)](/file_exists/3alleg.md), [**file\_size\_ex**(3alleg)](/file_size_ex/3alleg.md)
