NeBuild dev
Loading...
Searching...
No Matches
time Struct Reference

A local time-of-day. More...

#include <date_time.hpp>

Public Member Functions

TOML_NODISCARD_CTOR time () noexcept=default
 Default constructor. Does not initialize the members.
 
 TOML_CONSTRAINED_TEMPLATE ((impl::all_integral< H, M, S, NS >), typename H, typename M, typename S=uint8_t, typename NS=uint32_t) TOML_NODISCARD_CTOR const expr time(H h
 Constructs a time from individual time component values.
 

Public Attributes

uint8_t hour
 The hour component, from 0 - 23.
 
uint8_t minute
 The minute component, from 0 - 59.
 
uint8_t second
 The second component, from 0 - 59.
 
uint32_t nanosecond
 The fractional nanoseconds component, from 0 - 999999999.
 
m
 
M S s = S{}
 

Detailed Description

A local time-of-day.

Constructor & Destructor Documentation

◆ time()

TOML_NODISCARD_CTOR time::time ( )
defaultnoexcept

Default constructor. Does not initialize the members.

Member Function Documentation

◆ TOML_CONSTRAINED_TEMPLATE()

time::TOML_CONSTRAINED_TEMPLATE ( (impl::all_integral< H, M, S, NS >)  ,
typename H  ,
typename M  ,
typename S  = uint8_t,
typename NS  = uint32_t 
) const

Constructs a time from individual time component values.

Member Data Documentation

◆ hour

uint8_t time::hour

The hour component, from 0 - 23.

◆ m

M time::m

◆ minute

uint8_t time::minute

The minute component, from 0 - 59.

◆ nanosecond

uint32_t time::nanosecond

The fractional nanoseconds component, from 0 - 999999999.

◆ s

M S time::s = S{}

◆ second

uint8_t time::second

The second component, from 0 - 59.


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