date.h File Reference
|
CPP API
|
date.h File Reference
#include "memilio/io/io.h"#include "memilio/utils/logging.h"#include <string>#include <iostream>#include <tuple>#include <array>#include <numeric>#include <algorithm>#include <cassert>
Include dependency graph for date.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
| struct | mio::Date |
| Simple date representation as year, month, and day. More... | |
Namespaces | |
| mio | |
| A collection of classes to simplify handling of matrix shapes in meta programming. | |
Functions | |
| std::array< int, 12 > | mio::calculate_partial_sum_of_months (const Date &date) |
| Computes the cumulative number of days at the end of each month for a given year. More... | |
| std::string | mio::format_as (const mio::Date &d) |
| Format date objects using the ISO notation for logging with spdlog. More... | |
| int | mio::get_day_in_year (Date date) |
| Computes the day in year based on a given date. More... | |
| int | mio::get_month_length (Date date) |
| Computes the length of a month for a given date. More... | |
| int | mio::get_offset_in_days (Date date1, Date date2) |
| Computes the offset in days given two dates: first date minus second date. More... | |
| bool | mio::is_leap_year (int year) |
| Computes if a given year is a leap year. More... | |
| Date | mio::offset_date_by_days (Date date, int offset_days) |
| Computes the new date corresponding to a given date and a offset in days. More... | |
| IOResult< Date > | mio::parse_date (const std::string &date_str) |
| parses a date from a string. More... | |
Generated by