mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 10:13:42 +00:00
Add hint to show how many days left relative to today
This commit is contained in:
parent
53b1280115
commit
534da46a26
4 changed files with 33 additions and 13 deletions
|
@ -25,6 +25,15 @@ struct Date {
|
|||
bool operator<(const Date &other) const;
|
||||
bool operator>(const Date &other) const;
|
||||
|
||||
std::chrono::year_month_day toStdChrono() const
|
||||
{
|
||||
return std::chrono::year_month_day{
|
||||
std::chrono::year(year),
|
||||
std::chrono::month(month),
|
||||
std::chrono::day(day),
|
||||
};
|
||||
}
|
||||
|
||||
int year;
|
||||
unsigned month;
|
||||
unsigned day;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue