#include <xtd/console>
#include <xtd/environment>
#include <xtd/string>
auto main() -> int {
auto duration = 26_h + 3_min + 32_s + 24_ms + 500_ns;
console::out << string::format("{}", duration) << environment::new_line;
console::out << string::format("{:c}", duration) << environment::new_line;
console::out << string::format("{:d}", duration) << environment::new_line;
console::out << string::format("{:D}", duration) << environment::new_line;
console::out << string::format("{:f}", duration) << environment::new_line;
console::out << string::format("{:F}", duration) << environment::new_line;
console::out << string::format("{:g}", duration) << environment::new_line;
console::out << string::format("{:G}", duration) << environment::new_line;
console::out << string::format("{:h}", duration) << environment::new_line;
console::out << string::format("{:H}", duration) << environment::new_line;
console::out << string::format("{:m}", duration) << environment::new_line;
console::out << string::format("{:M}", duration) << environment::new_line;
console::out << string::format("{:n}", duration) << environment::new_line;
console::out << string::format("{:N}", duration) << environment::new_line;
console::out << string::format("{:s}", duration) << environment::new_line;
console::out << string::format("{:S}", duration) << environment::new_line;
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10