mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-04 04:38:14 +08:00
13 lines
318 B
C++
13 lines
318 B
C++
#pragma once
|
|
#include "RedisCache.h"
|
|
|
|
template <>
|
|
inline trantor::Date fromString<trantor::Date>(const std::string &str)
|
|
{
|
|
return trantor::Date(std::atoll(str.data()));
|
|
}
|
|
template <>
|
|
inline std::string toString<trantor::Date>(const trantor::Date &date)
|
|
{
|
|
return std::to_string(date.microSecondsSinceEpoch());
|
|
} |