mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
enable nanoseconds in datetimes
This commit is contained in:
@@ -89,7 +89,7 @@ template<typename T, typename std::enable_if<
|
||||
inline T get(value& v)
|
||||
{
|
||||
return std::chrono::duration_cast<T>(
|
||||
std::chrono::microseconds(v.cast<value_t::LocalTime>()));
|
||||
std::chrono::nanoseconds(v.cast<value_t::LocalTime>()));
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
|
Reference in New Issue
Block a user