#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
class program {
public:
static auto main() {
auto date1 =
date_time {2008, 4, 1, 18, 7, 5, 16};
console::write_line(date_time::sprintf("%a", date1));
console::write_line(date_time::sprintf("%A", date1));
console::write_line(date_time::sprintf("%b", date1));
console::write_line(date_time::sprintf("%B", date1));
console::write_line(date_time::sprintf("%c", date1));
console::write_line(date_time::sprintf("%C", date1));
console::write_line(date_time::sprintf("%d", date1));
console::write_line(date_time::sprintf("%D", date1));
console::write_line(date_time::sprintf("%e", date1));
console::write_line(date_time::sprintf("%Ec", date1));
console::write_line(date_time::sprintf("%EC", date1));
console::write_line(date_time::sprintf("%Ex", date1));
console::write_line(date_time::sprintf("%EX", date1));
console::write_line(date_time::sprintf("%Ey", date1));
console::write_line(date_time::sprintf("%EY", date1));
console::write_line(date_time::sprintf("%F", date1));
console::write_line(date_time::sprintf("%g", date1));
console::write_line(date_time::sprintf("%G", date1));
console::write_line(date_time::sprintf("%h", date1));
console::write_line(date_time::sprintf("%H", date1));
console::write_line(date_time::sprintf("%I", date1));
console::write_line(date_time::sprintf("%j", date1));
console::write_line(date_time::sprintf("%m", date1));
console::write_line(date_time::sprintf("%M", date1));
console::write_line(date_time::sprintf("%p", date1));
console::write_line(date_time::sprintf("%r", date1));
console::write_line(date_time::sprintf("%R", date1));
console::write_line(date_time::sprintf("%S", date1));
console::write_line(date_time::sprintf("%T", date1));
console::write_line(date_time::sprintf("%u", date1));
console::write_line(date_time::sprintf("%U", date1));
console::write_line(date_time::sprintf("%V", date1));
console::write_line(date_time::sprintf("%w", date1));
console::write_line(date_time::sprintf("%W", date1));
console::write_line(date_time::sprintf("%x", date1));
console::write_line(date_time::sprintf("%X", date1));
console::write_line(date_time::sprintf("%y", date1));
console::write_line(date_time::sprintf("%Y", date1));
console::write_line(date_time::sprintf("%z", date1));
console::write_line(date_time::sprintf("%Z", date1));
console::write_line(date_time::sprintf("%Od", date1));
console::write_line(date_time::sprintf("%Oe", date1));
console::write_line(date_time::sprintf("%OH", date1));
console::write_line(date_time::sprintf("%OI", date1));
console::write_line(date_time::sprintf("%Om", date1));
console::write_line(date_time::sprintf("%OM", date1));
console::write_line(date_time::sprintf("%OS", date1));
console::write_line(date_time::sprintf("%Ou", date1));
console::write_line(date_time::sprintf("%OU", date1));
console::write_line(date_time::sprintf("%OV", date1));
console::write_line(date_time::sprintf("%Ow", date1));
console::write_line(date_time::sprintf("%OW", date1));
console::write_line(date_time::sprintf("%Oy", date1));
}
};
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp: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.hpp:175
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10