MCPcopy Create free account
hub / github.com/archlinux/alpm / default_filetime

Function default_filetime

alpm-mtree/tests/validate.rs:111–113  ·  view source on GitHub ↗

Returns a default [`FileTime`] struct with all times set to UNIX_EPOCH.

()

Source from the content-addressed store, hash-verified

109
110/// Returns a default [`FileTime`] struct with all times set to UNIX_EPOCH.
111fn default_filetime() -> FileTime {
112 FileTime::from_unix_time(0, 0)
113}
114
115/// Returns a [`FileTimes`] struct with custom seconds since the UNIX_EPOCH.
116fn new_filetimes(seconds: u64) -> TestResult<FileTimes> {

Callers 2

create_data_filesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected