Embedded Template Library 1.0
Loading...
Searching...
No Matches
etl::chrono::year_month_day_last Class Reference

Spaceship operator. More...

#include <year_month_day.h>

Public Member Functions

ETL_CONSTEXPR14 year_month_day_last (const etl::chrono::year &y_, const etl::chrono::month_day_last &mdl_) ETL_NOEXCEPT
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::year year () const ETL_NOEXCEPT
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month month () const ETL_NOEXCEPT
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::day day () const ETL_NOEXCEPT
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month_day_last month_day_last () const ETL_NOEXCEPT
ETL_NODISCARD ETL_CONSTEXPR14 bool ok () const ETL_NOEXCEPT
ETL_CONSTEXPR14 etl::chrono::year_month_day_lastoperator+= (const etl::chrono::years &dy) ETL_NOEXCEPT
ETL_CONSTEXPR14 etl::chrono::year_month_day_lastoperator+= (const etl::chrono::months &dm) ETL_NOEXCEPT
ETL_CONSTEXPR14 etl::chrono::year_month_day_lastoperator-= (const etl::chrono::years &dy) ETL_NOEXCEPT
ETL_CONSTEXPR14 etl::chrono::year_month_day_lastoperator-= (const etl::chrono::months &dm) ETL_NOEXCEPT
ETL_NODISCARD ETL_CONSTEXPR14 int compare (const year_month_day_last &other) const ETL_NOEXCEPT
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::sys_days () const ETL_NOEXCEPT
 Converts to etl::chrono::sys_days.
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::local_days () const ETL_NOEXCEPT
 Converts to etl::chrono::local_days.

Detailed Description

Spaceship operator.

year_month_day_last

Member Function Documentation

◆ compare()

ETL_NODISCARD ETL_CONSTEXPR14 int etl::chrono::year_month_day_last::compare ( const year_month_day_last & other) const
inline

Compare year_month_day with another. if year < other.year, returns -1 else if year > other.year, returns 1 if month < other.month, returns -1 else if month > other.month, returns 1 else returns 0


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