Shows how to use xtd::date_time::add_years method.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/math>
#include <xtd/startup>
class program {
public:
static auto main() {
for (auto ctr = -1; ctr >= -15; ctr--)
for (auto ctr = 1; ctr <= 15; 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 decimal abs(decimal value)
Returns the absolute value of a decimal number.
#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:167
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8