26#include <fmt/chrono.h>
27#include <fmt/format.h>
29#include "num_collect/impl/num_collect_export.h"
54 [[nodiscard]]
auto seconds() const noexcept ->
std::time_t;
94 constexpr auto parse(format_parse_context& context)
95 ->
decltype(context.begin()) {
108 const auto time_tm = fmt::gmtime(val.
seconds());
109 return fmt::format_to(context.out(), FMT_STRING(
"{0:%FT%T}.{1:09d}"),
auto seconds() const noexcept -> std::time_t
Get the number of seconds from the epoch.
static auto now() noexcept -> time_stamp
Get the current time stamp.
time_stamp(std::time_t seconds, std::uint32_t nanoseconds) noexcept
Constructor.
std::time_t seconds_
Number of seconds from the epoch.
auto nanoseconds() const noexcept -> std::uint32_t
Get the number of nanoseconds from the time specified by seconds.
std::uint32_t nanoseconds_
Number of nanoseconds from the time specified by seconds_ (from 0 to 999999999).
Namespace of fmt library.
Namespace of num_collect source codes.