BloombergLP::bdls::FilesystemUtil::getLastModificationTime

Load into time the last modification time of the file at path.

Synopsis

Declared in <bdls_filesystemutil.h>

template<class STRING_TYPE>
static
int
getLastModificationTime(
    bdlt::Datetime* time,
    STRING_TYPE const& path);

Description

Same as the overload taking const char *.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
timereceives the last modification time in UTC
pathfilesystem path of the file