Shows how to use xtd::date_time::subtract method.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
class program {
public:
static auto main() {
auto diff1 = date2.subtract(date1);
auto date4 = date3.subtract(diff1);
auto diff2 = date2 - date3;
auto date5 = date1 - diff2;
}
};
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.h:85
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175