Shows how to use xtd::date_time::today property.
#include <xtd/xtd>
class program {
public:
static auto main() {
auto dates = array {date_time::now(), date_time {2013, 9, 14, 9, 28, 0}, date_time {2011, 5, 28, 10, 35, 0}, date_time {1979, 12, 25, 14, 30, 0}};
for (auto date : dates) {
console::write_line("Day: {0:d} Time: {1:g}", date.date(), date.time_of_day());
console::write_line("Day: {0:d} Time: {0:t}\n", date);
}
}
};
#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