#include <xtd/xtd>
class program {
public:
static auto main() {
auto date_value = date_time {2008, 6, 15, 21, 15, 07};
auto standard_fmts = {"d", "D", "f", "F", "g", "G", "m", "o", "R", "s", "t", "T", "u", "U", "y"};
for (auto standard_fmt : standard_fmts)
console::write_line("{}: {}", standard_fmt, date_value.to_string(standard_fmt));
console::write_line();
auto custom_fmts = {"h:mm:ss.ff t", "d MMM yyyy", "HH:mm:ss.f", "dd MMM HH:mm:ss", "\\Mon\\t\\h\\: M", "HH:mm:ss.ffffzzz"};
for (auto custom_fmt : custom_fmts)
console::write_line("'{0}': {1}", custom_fmt, date_value.to_string(custom_fmt));
}
};
#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