Shows how to use xtd::date_time::days_in_month method.
#include <xtd/as>
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
#include <array>
class program {
public:
static auto main() {
auto years = std::array<unsigned int, 2> {2012, 2014};
for (auto year : years) {
for (auto ctr = 1u; ctr <= 12u; ctr++)
}
}
};
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static int32 days_in_month(uint32 year, month_of_year month)
Returns the number of days in the specified month and year.
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168
type_t as(any_object &o)
Casts a type into another type.
Definition __as_any_object.hpp:59
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8