tempoch-cpp 0.5.3
Header-only C++ wrapper for tempoch
Loading...
Searching...
No Matches
jd.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "base.hpp"
4
5namespace tempoch {
6
7namespace format {
8struct JD {};
9} // namespace format
10
11template <> struct is_format<format::JD> : std::true_type {};
12
13template <> struct FormatTraits<format::JD> {
14 using quantity_type = qtty::Day;
15 static constexpr tempoch_format_tag_t ffi_tag = TEMPOCH_FORMAT_TAG_T_JD;
16 static constexpr const char *name() { return "JD"; }
17};
18
19} // namespace tempoch
static constexpr const char * name()
Definition jd.hpp:16