Function localtime_s

Synopsis

#include <toml/datetime.hpp>

std::tm localtime_s(const std::time_t *src)

Description

No description yet.

Mentioned in

Source

Lines 55-60 in toml/datetime.hpp.

inline std::tm localtime_s(const std::time_t* src)
{
    const auto result = std::localtime(src);
    if (!result) { throw std::runtime_error("localtime failed."); }
    return *result;
}





Add Discussion as Guest

Log in