BloombergLP::bdls::FilesystemUtil::getLastModificationTime

getLastModificationTime overloads

Synopses

Declared in <bdls_filesystemutil.h>

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.

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

Load into the specified time the last modification time of the file at the specified path, as reported by the filesystem. Return 0 on success, and a non-zero value otherwise. The time is reported in UTC. The parameterized STRING_TYPE must be one of bsl::string, std::string, std::pmr::string (if supported), bsl::string_view, or bslstl::StringRef.

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

Same as the overload taking const char *.

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