# setPreserveFileTimestamps

open fun setPreserveFileTimestamps(preserveFileTimestamps: Boolean)(source)

Specifies whether file timestamps should be preserved in the archive.

If `false` this ensures that archive entries have the same time for builds between different machines, Java versions and operating systems.

Gradle defaults to `false` if not set explictly starting Gradle 9.0.0

#### Since

3.4

#### Parameters

preserveFileTimestamps

`true` if file timestamps should be preserved for archive entries