BloombergLP::bdls::FilesystemUtil::getLastModificationTime

getLastModificationTime overloads

Synopses

Declared in <bdls_filesystemutil.h>

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

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

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

static
int
getLastModificationTime(
    bdlt::Datetime* time,
    char const* path);
» more...

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

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

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
pathfilesystem path of the file