2
3
4
5
6
7
8
18# pragma warning(disable: 4702
)
19# pragma warning(disable: 4996
)
23template <
typename ArgFormatter>
25 const char *&format_str,
const std::tm &tm) {
29 while (*
end && *
end !=
'}')
61inline Null<>
gmtime_r(...) {
return Null<>(); }
62inline Null<>
gmtime_s(...) {
return Null<>(); }
71 LocalTime(
std::time_t t): time_(t) {}
85 bool fallback(
int res) {
return res == 0; }
89 std::tm *tm = std::localtime(&time_);
108 GMTime(
std::time_t t): time_(t) {}
115 bool handle(
std::tm *tm) {
return tm !=
FMT_NULL; }
122 bool fallback(
int res) {
return res == 0; }
125 std::tm *tm = std::gmtime(&time_);
std::tm localtime(std::time_t time)
void format_arg(BasicFormatter< char, ArgFormatter > &f, const char *&format_str, const std::tm &tm)
std::tm gmtime(std::time_t time)