Dynalib Utils
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
date::detail::decimal_format_seconds< Duration, w > Class Template Reference

#include <date.h>

Public Types

using rep = typename std::common_type< Duration, std::chrono::seconds >::type::rep
 
using precision = typename make_precision< rep, w >::type
 

Public Member Functions

CONSTCD11 decimal_format_seconds ()
 
CONSTCD11 decimal_format_seconds (const Duration &d) NOEXCEPT
 
CONSTCD14 std::chrono::seconds & seconds () NOEXCEPT
 
CONSTCD11 std::chrono::seconds seconds () const NOEXCEPT
 
CONSTCD11 precision subseconds () const NOEXCEPT
 
CONSTCD14 precision to_duration () const NOEXCEPT
 
CONSTCD11 bool in_conventional_range () const NOEXCEPT
 

Static Public Attributes

static auto CONSTDATA width = make_precision<rep, w>::width
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const decimal_format_seconds &x)
 

Member Typedef Documentation

◆ precision

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
using date::detail::decimal_format_seconds< Duration, w >::precision = typename make_precision<rep, w>::type

◆ rep

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
using date::detail::decimal_format_seconds< Duration, w >::rep = typename std::common_type<Duration, std::chrono::seconds>::type::rep

Constructor & Destructor Documentation

◆ decimal_format_seconds() [1/2]

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
CONSTCD11 date::detail::decimal_format_seconds< Duration, w >::decimal_format_seconds ( )
inline

◆ decimal_format_seconds() [2/2]

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
CONSTCD11 date::detail::decimal_format_seconds< Duration, w >::decimal_format_seconds ( const Duration &  d)
inlineexplicit

Member Function Documentation

◆ in_conventional_range()

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
CONSTCD11 bool date::detail::decimal_format_seconds< Duration, w >::in_conventional_range ( ) const
inline

◆ seconds() [1/2]

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
CONSTCD14 std::chrono::seconds& date::detail::decimal_format_seconds< Duration, w >::seconds ( )
inline

◆ seconds() [2/2]

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
CONSTCD11 std::chrono::seconds date::detail::decimal_format_seconds< Duration, w >::seconds ( ) const
inline

◆ subseconds()

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
CONSTCD11 precision date::detail::decimal_format_seconds< Duration, w >::subseconds ( ) const
inline

◆ to_duration()

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
CONSTCD14 precision date::detail::decimal_format_seconds< Duration, w >::to_duration ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
template<class CharT , class Traits >
std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const decimal_format_seconds< Duration, w > &  x 
)
friend

Member Data Documentation

◆ width

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
auto CONSTDATA date::detail::decimal_format_seconds< Duration, w >::width = make_precision<rep, w>::width
static

The documentation for this class was generated from the following file: