Loading...
Searching...
No Matches
year_month_weekday.h
Go to the documentation of this file.
/******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
https://www.etlcpp.com
Copyright(c) 2025 John Wellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions :
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
******************************************************************************/
#ifndef ETL_IN_CHRONO_H
#error DO NOT DIRECTLY INCLUDE THIS FILE. USE CHRONO.H
#endif
namespace etl
{
namespace chrono
{
//*************************************************************************
//*************************************************************************
class year_month_weekday
{
public:
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR year_month_weekday()
: y()
, m()
, wdi()
{
}
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 year_month_weekday(const etl::chrono::year& y_, const etl::chrono::month& m_, const etl::chrono::weekday_indexed& wdi_)
ETL_NOEXCEPT
: y(y_)
, m(m_)
, wdi(wdi_)
{
}
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 year_month_weekday(const etl::chrono::sys_days& sd) ETL_NOEXCEPT
: y(0)
, m(0U)
, wdi(etl::chrono::weekday(0), 0U)
{
// Extract year, month, and day
year_month_day ymd = year_month_day{sd};
etl::chrono::year yr = ymd.year();
etl::chrono::month mth = ymd.month();
etl::chrono::day dy = ymd.day();
// Get the weekday from sys_days
etl::chrono::weekday wd = etl::chrono::weekday{sd};
// Count how many times this weekday has occurred in the month so far
// We walk backward from the given day in steps of 7 days
unsigned index = 1;
for (int offset = static_cast<int>(static_cast<unsigned>(dy)) - 7; offset > 0; offset -= 7)
{
++index;
}
y = yr;
m = mth;
wdi = etl::chrono::weekday_indexed{wd, index};
}
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 year_month_weekday(const etl::chrono::local_days& ld) ETL_NOEXCEPT
: y(0)
, m(0U)
, wdi(etl::chrono::weekday(0), 0U)
{
year_month_weekday ymwd(sys_days(ld.time_since_epoch()));
y = ymwd.year();
m = ymwd.month();
wdi = ymwd.weekday_indexed();
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::year year() const ETL_NOEXCEPT
{
return y;
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month month() const ETL_NOEXCEPT
{
return m;
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday weekday() const ETL_NOEXCEPT
{
return wdi.weekday();
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 unsigned index() const ETL_NOEXCEPT
{
return wdi.index();
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday_indexed weekday_indexed() const ETL_NOEXCEPT
{
return wdi;
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 bool ok() const ETL_NOEXCEPT
{
return y.ok() && m.ok() && wdi.ok();
}
//***********************************************************************
//***********************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::sys_days() const ETL_NOEXCEPT
{
if (ok())
{
etl::chrono::year_month_weekday ymwd(*this);
etl::chrono::year_month_day ymd{ymwd.year(), ymwd.month(), etl::chrono::day(1)};
etl::chrono::sys_days sd = ymd;
unsigned int target_wd = ymwd.weekday().c_encoding();
unsigned int target_index = ymwd.index();
etl::chrono::weekday first_weekday(sd);
unsigned int first_wd = first_weekday.c_encoding();
unsigned int offset = (target_wd - first_wd + 7U) % 7U;
unsigned int day_of_month = 1U + offset + (target_index - 1U) * 7U;
etl::chrono::year_month_day result(year(), month(), etl::chrono::day(day_of_month));
return etl::chrono::sys_days(result);
}
else
{
return etl::chrono::sys_days();
}
}
//***********************************************************************
//***********************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::local_days() const ETL_NOEXCEPT
{
return local_days(sys_days(*this).time_since_epoch());
}
private:
etl::chrono::year y;
etl::chrono::month m;
etl::chrono::weekday_indexed wdi;
};
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday operator+(const etl::chrono::year_month_weekday& ymwd, const etl::chrono::years& dy)
ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday(ymwd.year() + dy, ymwd.month(), ymwd.weekday_indexed());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday operator+(const etl::chrono::years& dy, const etl::chrono::year_month_weekday& ymwd)
ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday(ymwd.year() + dy, ymwd.month(), ymwd.weekday_indexed());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday operator+(const etl::chrono::year_month_weekday& ymwd, const etl::chrono::months& dm)
ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday(ymwd.year(), ymwd.month() + dm, ymwd.weekday_indexed());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday operator+(const etl::chrono::months& dm, const etl::chrono::year_month_weekday& ymwd)
ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday(ymwd.year(), ymwd.month() + dm, ymwd.weekday_indexed());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday operator-(const etl::chrono::year_month_weekday& ymwd, const etl::chrono::years& dy)
ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday(ymwd.year() - dy, ymwd.month(), ymwd.weekday_indexed());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday operator-(const etl::chrono::year_month_weekday& ymwd, const etl::chrono::months& dm)
ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday(ymwd.year(), ymwd.month() - dm, ymwd.weekday_indexed());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 bool operator==(const etl::chrono::year_month_weekday& lhs, const etl::chrono::year_month_weekday& rhs) ETL_NOEXCEPT
{
return (lhs.year() == rhs.year()) && (lhs.month() == rhs.month()) && (lhs.weekday() == rhs.weekday());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 bool operator!=(const etl::chrono::year_month_weekday& lhs, const etl::chrono::year_month_weekday& rhs) ETL_NOEXCEPT
{
return !(lhs == rhs);
}
//*************************************************************************
//*************************************************************************
class year_month_weekday_last
{
public:
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 year_month_weekday_last(const etl::chrono::year& y_, const etl::chrono::month& m_, const etl::chrono::weekday_last& wdl_)
ETL_NOEXCEPT
: y(y_)
, m(m_)
, wdl(wdl_)
{
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::year year() const ETL_NOEXCEPT
{
return y;
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month month() const ETL_NOEXCEPT
{
return m;
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday weekday() const ETL_NOEXCEPT
{
return wdl.weekday();
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday_last weekday_last() const ETL_NOEXCEPT
{
return wdl;
}
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last& operator+=(const etl::chrono::years& dy) ETL_NOEXCEPT
{
y += dy;
return *this;
}
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last& operator+=(const etl::chrono::months& dm) ETL_NOEXCEPT
{
m += dm;
return *this;
}
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last& operator-=(const etl::chrono::years& dy) ETL_NOEXCEPT
{
y -= dy;
return *this;
}
//*************************************************************************
//*************************************************************************
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last& operator-=(const etl::chrono::months& dm) ETL_NOEXCEPT
{
m -= dm;
return *this;
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::sys_days() const ETL_NOEXCEPT
{
// Get the last day of the month
etl::chrono::year_month_day_last ymdl(year(), etl::chrono::month_day_last(month()));
etl::chrono::day last_day = ymdl.day();
// Walk backward from the last day to find the last occurrence of the
// target weekday
unsigned d = static_cast<unsigned>(last_day);
for (; d >= 1; --d)
{
etl::chrono::year_month_day ymd(year(), month(), etl::chrono::day(d));
etl::chrono::sys_days ymd_sys_days = static_cast<etl::chrono::sys_days>(ymd);
etl::chrono::weekday wd(ymd_sys_days);
if (wd == weekday())
{
return ymd_sys_days;
}
}
// If not found (should not happen for valid input), return epoch
return etl::chrono::sys_days();
}
//*************************************************************************
//*************************************************************************
ETL_NODISCARD ETL_CONSTEXPR14 explicit operator etl::chrono::local_days() const ETL_NOEXCEPT
{
return local_days(sys_days(*this).time_since_epoch());
}
private:
etl::chrono::year y;
etl::chrono::month m;
etl::chrono::weekday_last wdl;
};
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last operator+(const etl::chrono::year_month_weekday_last& ymwdl,
const etl::chrono::years& dy) ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday_last(ymwdl.year() + dy, ymwdl.month(), ymwdl.weekday_last());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last operator+(const etl::chrono::years& dy,
const etl::chrono::year_month_weekday_last& ymwdl) ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday_last(ymwdl.year() + dy, ymwdl.month(), ymwdl.weekday_last());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last operator+(const etl::chrono::year_month_weekday_last& ymwdl,
const etl::chrono::months& dm) ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday_last(ymwdl.year(), ymwdl.month() + dm, ymwdl.weekday_last());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last operator+(const etl::chrono::months& dm,
const etl::chrono::year_month_weekday_last& ymwdl) ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday_last(ymwdl.year(), ymwdl.month() + dm, ymwdl.weekday_last());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last operator-(const etl::chrono::year_month_weekday_last& ymwdl,
const etl::chrono::years& dy) ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday_last(ymwdl.year() - dy, ymwdl.month(), ymwdl.weekday_last());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last operator-(const etl::chrono::year_month_weekday_last& ymwdl,
const etl::chrono::months& dm) ETL_NOEXCEPT
{
return etl::chrono::year_month_weekday_last(ymwdl.year(), ymwdl.month() - dm, ymwdl.weekday_last());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 bool operator==(const etl::chrono::year_month_weekday_last& lhs, const etl::chrono::year_month_weekday_last& rhs)
ETL_NOEXCEPT
{
return (lhs.year() == rhs.year()) && (lhs.month() == rhs.month()) && (lhs.weekday() == rhs.weekday());
}
//*************************************************************************
//*************************************************************************
inline ETL_CONSTEXPR14 bool operator!=(const etl::chrono::year_month_weekday_last& lhs, const etl::chrono::year_month_weekday_last& rhs)
ETL_NOEXCEPT
{
return !(lhs == rhs);
}
} // namespace chrono
//*************************************************************************
//*************************************************************************
#if ETL_USING_8BIT_TYPES
template <>
struct hash<etl::chrono::year_month_weekday>
{
size_t operator()(const etl::chrono::year_month_weekday& ymwd) const
{
etl::chrono::year::rep y = static_cast<etl::chrono::year::rep>(static_cast<int>(ymwd.year()));
etl::chrono::month::rep m = static_cast<etl::chrono::month::rep>(static_cast<unsigned>(ymwd.month()));
unsigned int wd = ymwd.weekday().c_encoding();
uint8_t buffer[sizeof(y) + sizeof(m) + sizeof(wd)];
memcpy(buffer, &y, sizeof(y));
memcpy(buffer + sizeof(y), &m, sizeof(m));
memcpy(buffer + sizeof(y) + sizeof(m), &wd, sizeof(wd));
return etl::private_hash::generic_hash<size_t>(buffer, buffer + sizeof(y) + sizeof(m) + sizeof(wd));
}
};
#endif
//*************************************************************************
//*************************************************************************
#if ETL_USING_8BIT_TYPES
template <>
struct hash<etl::chrono::year_month_weekday_last>
{
size_t operator()(const etl::chrono::year_month_weekday_last& ymwdl) const
{
etl::chrono::year::rep y = static_cast<etl::chrono::year::rep>(static_cast<int>(ymwdl.year()));
etl::chrono::month::rep m = static_cast<etl::chrono::month::rep>(static_cast<unsigned>(ymwdl.month()));
unsigned int wd = ymwdl.weekday().c_encoding();
uint8_t buffer[sizeof(y) + sizeof(m) + sizeof(wd)];
memcpy(buffer, &y, sizeof(y));
memcpy(buffer + sizeof(y), &m, sizeof(m));
memcpy(buffer + sizeof(y) + sizeof(m), &wd, sizeof(wd));
return etl::private_hash::generic_hash<size_t>(buffer, buffer + sizeof(y) + sizeof(m) + sizeof(wd));
}
};
#endif
} // namespace etl
etl::chrono::day
day
Definition day.h:43
etl::chrono::month_day_last
Spaceship operator.
Definition month_day.h:202
etl::chrono::month
month
Definition month.h:54
etl::chrono::weekday_indexed
weekday_indexed
Definition weekday.h:338
etl::chrono::weekday_last
weekday_last
Definition weekday.h:409
etl::chrono::weekday
weekday
Definition weekday.h:54
etl::chrono::weekday::c_encoding
ETL_NODISCARD ETL_CONSTEXPR14 unsigned c_encoding() const ETL_NOEXCEPT
Get the C encoding of the weekday.
Definition weekday.h:210
etl::chrono::weekday::weekday
ETL_CONSTEXPR weekday() ETL_NOEXCEPT
Default constructor.
Definition weekday.h:60
etl::chrono::year_month_day_last
Spaceship operator.
Definition year_month_day.h:455
etl::chrono::year_month_day
year_month_day
Definition year_month_day.h:45
etl::chrono::year_month_day::month
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month month() const ETL_NOEXCEPT
Returns the month.
Definition year_month_day.h:152
etl::chrono::year_month_day::day
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::day day() const ETL_NOEXCEPT
Returns the day.
Definition year_month_day.h:160
etl::chrono::year_month_day::year
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::year year() const ETL_NOEXCEPT
Returns the year.
Definition year_month_day.h:144
etl::chrono::year_month_weekday_last
year_month_weekday_last
Definition year_month_weekday.h:282
etl::chrono::year_month_weekday_last::weekday
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday weekday() const ETL_NOEXCEPT
Returns the weekday.
Definition year_month_weekday.h:315
etl::chrono::year_month_weekday_last::year_month_weekday_last
ETL_CONSTEXPR14 year_month_weekday_last(const etl::chrono::year &y_, const etl::chrono::month &m_, const etl::chrono::weekday_last &wdl_) ETL_NOEXCEPT
Construct from year, month, weekday_last.
Definition year_month_weekday.h:288
etl::chrono::year_month_weekday_last::weekday_last
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday_last weekday_last() const ETL_NOEXCEPT
Returns the weekday_last.
Definition year_month_weekday.h:323
etl::chrono::year_month_weekday_last::sys_days
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::sys_days() const ETL_NOEXCEPT
Converts to etl::chrono::sys_days.
Definition year_month_weekday.h:371
etl::chrono::year_month_weekday_last::local_days
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::local_days() const ETL_NOEXCEPT
Converts to etl::chrono::local_days.
Definition year_month_weekday.h:400
etl::chrono::year_month_weekday_last::operator+=
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last & operator+=(const etl::chrono::months &dm) ETL_NOEXCEPT
Adds etl::chrono::months.
Definition year_month_weekday.h:341
etl::chrono::year_month_weekday_last::operator-=
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last & operator-=(const etl::chrono::years &dy) ETL_NOEXCEPT
Subtracts etl::chrono::years.
Definition year_month_weekday.h:351
etl::chrono::year_month_weekday_last::operator-=
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last & operator-=(const etl::chrono::months &dm) ETL_NOEXCEPT
Subtracts etl::chrono::months.
Definition year_month_weekday.h:361
etl::chrono::year_month_weekday_last::month
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month month() const ETL_NOEXCEPT
Returns the month.
Definition year_month_weekday.h:307
etl::chrono::year_month_weekday_last::year
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::year year() const ETL_NOEXCEPT
Returns the year.
Definition year_month_weekday.h:299
etl::chrono::year_month_weekday_last::operator+=
ETL_CONSTEXPR14 etl::chrono::year_month_weekday_last & operator+=(const etl::chrono::years &dy) ETL_NOEXCEPT
Adds etl::chrono::years.
Definition year_month_weekday.h:331
etl::chrono::year_month_weekday
year_month_weekday
Definition year_month_weekday.h:43
etl::chrono::year_month_weekday::year_month_weekday
ETL_CONSTEXPR14 year_month_weekday(const etl::chrono::year &y_, const etl::chrono::month &m_, const etl::chrono::weekday_indexed &wdi_) ETL_NOEXCEPT
Construct from month, day, and weekday_indexed.
Definition year_month_weekday.h:59
etl::chrono::year_month_weekday::weekday
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday weekday() const ETL_NOEXCEPT
Returns the weekday.
Definition year_month_weekday.h:133
etl::chrono::year_month_weekday::year_month_weekday
ETL_CONSTEXPR14 year_month_weekday(const etl::chrono::sys_days &sd) ETL_NOEXCEPT
Construct from sys_days.
Definition year_month_weekday.h:70
etl::chrono::year_month_weekday::year
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::year year() const ETL_NOEXCEPT
Returns the year.
Definition year_month_weekday.h:117
etl::chrono::year_month_weekday::sys_days
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::sys_days() const ETL_NOEXCEPT
Converts to etl::chrono::sys_days.
Definition year_month_weekday.h:165
etl::chrono::year_month_weekday::weekday_indexed
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::weekday_indexed weekday_indexed() const ETL_NOEXCEPT
Returns the weekday_indexed.
Definition year_month_weekday.h:149
etl::chrono::year_month_weekday::year_month_weekday
ETL_CONSTEXPR14 year_month_weekday(const etl::chrono::local_days &ld) ETL_NOEXCEPT
Construct from local_days.
Definition year_month_weekday.h:102
etl::chrono::year_month_weekday::local_days
ETL_NODISCARD ETL_CONSTEXPR14 operator etl::chrono::local_days() const ETL_NOEXCEPT
Converts to etl::chrono::local_days.
Definition year_month_weekday.h:196
etl::chrono::year_month_weekday::index
ETL_NODISCARD ETL_CONSTEXPR14 unsigned index() const ETL_NOEXCEPT
Returns the weekday index.
Definition year_month_weekday.h:141
etl::chrono::year_month_weekday::month
ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month month() const ETL_NOEXCEPT
Returns the month.
Definition year_month_weekday.h:125
etl::chrono::year_month_weekday::ok
ETL_NODISCARD ETL_CONSTEXPR14 bool ok() const ETL_NOEXCEPT
Returns true if the year/month/day is valid.
Definition year_month_weekday.h:157
etl::chrono::year_month_weekday::year_month_weekday
ETL_CONSTEXPR year_month_weekday()
Default constructor.
Definition year_month_weekday.h:49
etl::chrono::year
year
Definition year.h:43
etl::chrono::operator+
ETL_CONSTEXPR14 etl::chrono::day operator+(const etl::chrono::day &d, const etl::chrono::days &ds) ETL_NOEXCEPT
Spaceship operator.
Definition day.h:226
etl::chrono::operator-
ETL_CONSTEXPR14 etl::chrono::day operator-(const etl::chrono::day &d, const etl::chrono::days &ds) ETL_NOEXCEPT
Definition day.h:252
etl::chrono::operator==
ETL_CONSTEXPR14 bool operator==(const etl::chrono::day &d1, const etl::chrono::day &d2) ETL_NOEXCEPT
Equality operator.
Definition day.h:166
etl::chrono::operator!=
ETL_CONSTEXPR14 bool operator!=(const etl::chrono::day &d1, const etl::chrono::day &d2) ETL_NOEXCEPT
Inequality operator.
Definition day.h:174
etl
Definition absolute.h:40