Scarab  v3.8.0
Project 8 C++ Utility Library
Protected Types | Protected Member Functions | Protected Attributes | List of all members
time_of_day_base Class Reference

#include <date.h>

Inheritance diagram for time_of_day_base:
Inheritance graph

Protected Types

enum  { is24hr }
 

Protected Member Functions

constexpr time_of_day_base () noexcept
 
constexpr time_of_day_base (std::chrono::hours h, bool neg, unsigned m) noexcept
 
void make24 () noexcept
 
void make12 () noexcept
 
std::chrono::hours to24hr () const
 
constexpr bool in_conventional_range () const noexcept
 

Protected Attributes

std::chrono::hours h_
 
unsigned char mode_
 
bool neg_
 

Detailed Description

Definition at line 3772 of file date.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
is24hr 

Definition at line 3779 of file date.h.

Constructor & Destructor Documentation

◆ time_of_day_base() [1/2]

constexpr time_of_day_base ( )
inlineprotectednoexcept

Definition at line 3781 of file date.h.

◆ time_of_day_base() [2/2]

constexpr time_of_day_base ( std::chrono::hours  h,
bool  neg,
unsigned  m 
)
inlineprotectednoexcept

Definition at line 3788 of file date.h.

Member Function Documentation

◆ in_conventional_range()

constexpr bool in_conventional_range ( ) const
inlineprotectednoexcept

Definition at line 3799 of file date.h.

◆ make12()

void make12 ( )
inlineprotectednoexcept

Definition at line 3837 of file date.h.

◆ make24()

void make24 ( )
inlineprotectednoexcept

Definition at line 3828 of file date.h.

◆ to24hr()

std::chrono::hours to24hr ( ) const
inlineprotected

Definition at line 3808 of file date.h.

Member Data Documentation

◆ h_

std::chrono::hours h_
protected

Definition at line 3775 of file date.h.

◆ mode_

unsigned char mode_
protected

Definition at line 3776 of file date.h.

◆ neg_

bool neg_
protected

Definition at line 3777 of file date.h.


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