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
5
namespace
tempoch
{
6
7
namespace
format {
8
struct
JD
{};
9
}
// namespace format
10
11
template
<>
struct
is_format
<format::JD> : std::true_type {};
12
13
template
<>
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
tempoch
Definition
civil_time.hpp:15
base.hpp
tempoch::FormatTraits< format::JD >::name
static constexpr const char * name()
Definition
jd.hpp:16
tempoch::FormatTraits< format::JD >::quantity_type
qtty::Day quantity_type
Definition
jd.hpp:14
tempoch::FormatTraits
Definition
formats/base.hpp:12
tempoch::format::JD
Definition
jd.hpp:8
tempoch::is_format
Definition
formats/base.hpp:9
include
tempoch
formats
jd.hpp
Generated by
1.9.8