A date-based amount of time.
More...
#include <ignite_period.h>
A date-based amount of time.
This is modeled after java.time.Period.
◆ ignite_period() [1/2]
| ignite::ignite_period::ignite_period |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ ignite_period() [2/2]
| ignite::ignite_period::ignite_period |
( |
std::int32_t | years, |
|
|
std::int32_t | months, |
|
|
std::int32_t | days ) |
|
inlineconstexpr |
Constructor.
- Parameters
-
| years | The number of years. |
| months | The number of months. |
| days | The number of days. |
◆ compare()
| int ignite::ignite_period::compare |
( |
const ignite_period & | other | ) |
const |
|
inlineconstexprnoexcept |
compare to another value.
- Parameters
-
| other | Instance to compare to. |
- Returns
- Zero if equals, negative number if less, and positive if greater.
◆ get_days()
| std::int32_t ignite::ignite_period::get_days |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ get_months()
| std::int32_t ignite::ignite_period::get_months |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ get_years()
| std::int32_t ignite::ignite_period::get_years |
( |
| ) |
const |
|
inlineconstexprnoexcept |
The documentation for this class was generated from the following file: