Load into time the last modification time of the file with descriptor.

Synopsis

Declared in <bdls_filesystemutil.h>

static
int
getLastModificationTime(
    bdlt::Datetime* time,
    FileDescriptor descriptor);

Description

Load into the specified time the last modification time of the file with the specified descriptor, as reported by the filesystem. Return 0 on success, and a non‐zero value otherwise. The time is reported in UTC.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

time

receives the last modification time in UTC

descriptor

file descriptor of the file

Created with MrDocs