Shows how to use xtd::date_time::date_time_day_of_year property.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
class program {
public:
static auto main() {
for (
auto ctr = 0
u; ctr <= 10u; ctr++) {
auto date_to_display = dec31.add_years(ctr);
}
}
};
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:85
static bool is_leap_year(uint32 year)
Returns an indication whether the specified year is a leap 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
@ u
The U key.
Definition console_key.hpp:128
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8