Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Stroika::Foundation::Time::MonthOfYear Struct Reference

Simple wrapper on std::chrono::month, with some helpful validation properties (assures constructed 'ok'). But not necessary to use - use just 'month' in most places. More...

#include <Date.h>

Inherits month.

Public Member Functions

constexpr MonthOfYear (month m, DataExchange::ValidationStrategy validationStrategy=DataExchange::ValidationStrategy::eAssertion)
 

Detailed Description

Simple wrapper on std::chrono::month, with some helpful validation properties (assures constructed 'ok'). But not necessary to use - use just 'month' in most places.

Note
- MonthOfYear was an enum in Stroika v2.1, so this is a significant change.
MonthOfYear can be converted from/to unsigned int.
not [[nodiscard]] cuz can use CTOR just for quiet validation

Definition at line 131 of file Date.h.

Constructor & Destructor Documentation

◆ MonthOfYear()

constexpr Stroika::Foundation::Time::MonthOfYear::MonthOfYear ( month  m,
DataExchange::ValidationStrategy  validationStrategy = DataExchange::ValidationStrategy::eAssertion 
)
constexpr

For the purpose of integer constructors, 1==January, 2==February and so on (no zero).

Definition at line 46 of file Date.inl.


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