summaryrefslogtreecommitdiffstats
path: root/server/src/time.cpp
blob: 98497617109c24502b008b6a9dd6142be3bcab1f (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
module routemon:time$impl;

import :time;

namespace routemon::time {

auto iso8601_secs(timestamp<std::chrono::seconds> ts) -> std::string
{
  return std::format("{0:%F}T{0:%T}Z", ts);
}

} // namespace routemon::time