enable nanoseconds in datetimes

This commit is contained in:
ToruNiina
2018-12-13 12:49:53 +09:00
parent fb6d51954a
commit 26e0d87d3b
3 changed files with 64 additions and 40 deletions

View File

@@ -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>()));
}
// ============================================================================