Shows how to use xtd::date_time::add method.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
#include <chrono>
class program {
public:
static auto main() {
auto duration = std::chrono::days {36};
auto answer = today.add(duration);
}
};
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
static date_time now() noexcept
Gets a xtd::date_time object that is set to the current date and time on this computer,...
#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:175