BloombergLP::bdls::FilesystemUtil::getLastModificationTime

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

NameDescription
timereceives the last modification time in UTC
descriptorfile descriptor of the file