#include <xtd/xtd>
class program {
public:
static auto main() {
auto date_value = date_time {2008, 6, 15, 21, 15, 07};
auto standard_fmts = {"%a", "%A", "%b", "%B", "%c", "%C", "%d", "%D", "%e", "%Ec", "%EC", "%Ex", "%EX", "%Ey",
"%EY", "%F", "%g", "%G", "%h", "%H", "%I", "%j", "%m", "%M", "%p", "%r", "%R", "%S", "%T", "%u", "%U", "%V",
"%w", "%W", "%x", "%X", "%y", "%Y", "%z", "%Z", "%Od", "%Oe", "%OH", "%OI", "%Om", "%OM", "%OS", "%Ou",
"%OU", "%OV", "%Ow", "%OW", "%Oy"};
for (auto standard_fmt : standard_fmts)
console::write_line("{}: {}", standard_fmt, date_time::sprintf(standard_fmt, date_value));
console::write_line();
auto custom_fmts = {"%I:%M:%S %p", "%e %b %G", "%H:%M:%S", "%e %b %H:%M:%S", "%%Month: %m", "%H:%M:%S%z"};
for (auto custom_fmt : custom_fmts)
console::write_line("'{0}': {1}", custom_fmt, date_time::sprintf(custom_fmt, date_value));
}
};
#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