From ff098b522855550d647939fb0baa69bedaf134ed Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Mon, 16 Dec 2024 15:32:54 +0100 Subject: [PATCH] Review examples --- .../format/format_boolean/README.md | 168 ++-- .../format_boolean/src/format_boolean.cpp | 212 ++--- .../format/format_character/README.md | 80 +- .../format_character/src/format_character.cpp | 99 ++- .../format/format_class/src/format_class.cpp | 10 +- .../src/format_class_object.cpp | 4 +- .../README.md | 47 +- .../format_class_with_specified_formating.cpp | 85 +- .../README.md | 47 +- ...ith_specified_formating_with_to_string.cpp | 85 +- .../format/format_date_time/README.md | 672 +++++++-------- .../format_date_time/src/format_date_time.cpp | 770 +++++++++--------- .../format/format_duration/README.md | 252 +++--- .../format_duration/src/format_duration.cpp | 291 +++---- .../format/format_enum/README.md | 74 +- .../format/format_enum/src/format_enum.cpp | 127 ++- .../format/format_enum_class/README.md | 74 +- .../src/format_enum_class.cpp | 125 ++- .../format/format_numeric/README.md | 186 ++--- .../format_numeric/src/format_numeric.cpp | 1 - .../format/format_system_clock/README.md | 410 +++++----- .../src/format_system_clock.cpp | 492 +++++------ .../format/format_time_span/README.md | 252 +++--- .../format_time_span/src/format_time_span.cpp | 288 +++---- .../format/format_tm/README.md | 328 ++++---- .../format/format_tm/src/format_tm.cpp | 410 +++++----- 26 files changed, 3024 insertions(+), 2565 deletions(-) diff --git a/examples/xtd.core.examples/format/format_boolean/README.md b/examples/xtd.core.examples/format/format_boolean/README.md index b47cd7d5f888..f8795d48de9c 100644 --- a/examples/xtd.core.examples/format/format_boolean/README.md +++ b/examples/xtd.core.examples/format/format_boolean/README.md @@ -22,93 +22,93 @@ xtdc run ┌───────────┬────────────┬──────────────────────────────────┐ │ boolean │ format │ representation │ ├───────────┼────────────┼──────────────────────────────────┤ -│ true │ {} │ true | -│ true │ {:b} │ 1 | -│ true │ {:b4} │ 0001 | -│ true │ {:b8} │ 00000001 | -│ true │ {:B} │ 1 | -│ true │ {:B4} │ 0001 | -│ true │ {:B8} │ 00000001 | -│ true │ {:d} │ 1 | -│ true │ {:d2} │ 01 | -│ true │ {:D} │ 1 | -│ true │ {:D2} │ 01 | -│ true │ {:g} │ true | -│ true │ {:G} │ true | -│ true │ {:o} │ 1 | -│ true │ {:o3} │ 001 | -│ true │ {:O} │ 1 | -│ true │ {:O3} │ 001 | -│ true │ {:x} │ 1 | -│ true │ {:x5} │ 00001 | -│ true │ {:X} │ 1 | -│ true │ {:X5} │ 00001 | +│ true │ {} │ true │ +│ true │ {:b} │ 1 │ +│ true │ {:b4} │ 0001 │ +│ true │ {:b8} │ 00000001 │ +│ true │ {:B} │ 1 │ +│ true │ {:B4} │ 0001 │ +│ true │ {:B8} │ 00000001 │ +│ true │ {:d} │ 1 │ +│ true │ {:d2} │ 01 │ +│ true │ {:D} │ 1 │ +│ true │ {:D2} │ 01 │ +│ true │ {:g} │ true │ +│ true │ {:G} │ true │ +│ true │ {:o} │ 1 │ +│ true │ {:o3} │ 001 │ +│ true │ {:O} │ 1 │ +│ true │ {:O3} │ 001 │ +│ true │ {:x} │ 1 │ +│ true │ {:x5} │ 00001 │ +│ true │ {:X} │ 1 │ +│ true │ {:X5} │ 00001 │ ├───────────┼────────────┼──────────────────────────────────┤ -│ false │ {} │ false | -│ false │ {:b} │ 0 | -│ false │ {:b4} │ 0000 | -│ false │ {:b8} │ 00000000 | -│ false │ {:B} │ 0 | -│ false │ {:B4} │ 0000 | -│ false │ {:B8} │ 00000000 | -│ false │ {:d} │ 0 | -│ false │ {:d2} │ 00 | -│ false │ {:D} │ 0 | -│ false │ {:D2} │ 00 | -│ false │ {:g} │ false | -│ false │ {:G} │ false | -│ false │ {:o} │ 0 | -│ false │ {:o3} │ 000 | -│ false │ {:O} │ 0 | -│ false │ {:O3} │ 000 | -│ false │ {:x} │ 0 | -│ false │ {:x5} │ 00000 | -│ false │ {:X} │ 0 | -│ false │ {:X5} │ 00000 | +│ false │ {} │ false │ +│ false │ {:b} │ 0 │ +│ false │ {:b4} │ 0000 │ +│ false │ {:b8} │ 00000000 │ +│ false │ {:B} │ 0 │ +│ false │ {:B4} │ 0000 │ +│ false │ {:B8} │ 00000000 │ +│ false │ {:d} │ 0 │ +│ false │ {:d2} │ 00 │ +│ false │ {:D} │ 0 │ +│ false │ {:D2} │ 00 │ +│ false │ {:g} │ false │ +│ false │ {:G} │ false │ +│ false │ {:o} │ 0 │ +│ false │ {:o3} │ 000 │ +│ false │ {:O} │ 0 │ +│ false │ {:O3} │ 000 │ +│ false │ {:x} │ 0 │ +│ false │ {:x5} │ 00000 │ +│ false │ {:X} │ 0 │ +│ false │ {:X5} │ 00000 │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 1 │ {} │ true | -│ 1 │ {:b} │ 1 | -│ 1 │ {:b4} │ 0001 | -│ 1 │ {:b8} │ 00000001 | -│ 1 │ {:B} │ 1 | -│ 1 │ {:B4} │ 0001 | -│ 1 │ {:B8} │ 00000001 | -│ 1 │ {:d} │ 1 | -│ 1 │ {:d2} │ 01 | -│ 1 │ {:D} │ 1 | -│ 1 │ {:D2} │ 01 | -│ 1 │ {:g} │ true | -│ 1 │ {:G} │ true | -│ 1 │ {:o} │ 1 | -│ 1 │ {:o3} │ 001 | -│ 1 │ {:O} │ 1 | -│ 1 │ {:O3} │ 001 | -│ 1 │ {:x} │ 1 | -│ 1 │ {:x5} │ 00001 | -│ 1 │ {:X} │ 1 | -│ 1 │ {:X5} │ 00001 | +│ 1 │ {} │ true │ +│ 1 │ {:b} │ 1 │ +│ 1 │ {:b4} │ 0001 │ +│ 1 │ {:b8} │ 00000001 │ +│ 1 │ {:B} │ 1 │ +│ 1 │ {:B4} │ 0001 │ +│ 1 │ {:B8} │ 00000001 │ +│ 1 │ {:d} │ 1 │ +│ 1 │ {:d2} │ 01 │ +│ 1 │ {:D} │ 1 │ +│ 1 │ {:D2} │ 01 │ +│ 1 │ {:g} │ true │ +│ 1 │ {:G} │ true │ +│ 1 │ {:o} │ 1 │ +│ 1 │ {:o3} │ 001 │ +│ 1 │ {:O} │ 1 │ +│ 1 │ {:O3} │ 001 │ +│ 1 │ {:x} │ 1 │ +│ 1 │ {:x5} │ 00001 │ +│ 1 │ {:X} │ 1 │ +│ 1 │ {:X5} │ 00001 │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 0 │ {} │ false | -│ 0 │ {:b} │ 0 | -│ 0 │ {:b4} │ 0000 | -│ 0 │ {:b8} │ 00000000 | -│ 0 │ {:B} │ 0 | -│ 0 │ {:B4} │ 0000 | -│ 0 │ {:B8} │ 00000000 | -│ 0 │ {:d} │ 0 | -│ 0 │ {:d2} │ 00 | -│ 0 │ {:D} │ 0 | -│ 0 │ {:D2} │ 00 | -│ 0 │ {:g} │ false | -│ 0 │ {:G} │ false | -│ 0 │ {:o} │ 0 | -│ 0 │ {:o3} │ 000 | -│ 0 │ {:O} │ 0 | -│ 0 │ {:O3} │ 000 | -│ 0 │ {:x} │ 0 | -│ 0 │ {:x5} │ 00000 | -│ 0 │ {:X} │ 0 | -│ 0 │ {:X5} │ 00000 | +│ 0 │ {} │ false │ +│ 0 │ {:b} │ 0 │ +│ 0 │ {:b4} │ 0000 │ +│ 0 │ {:b8} │ 00000000 │ +│ 0 │ {:B} │ 0 │ +│ 0 │ {:B4} │ 0000 │ +│ 0 │ {:B8} │ 00000000 │ +│ 0 │ {:d} │ 0 │ +│ 0 │ {:d2} │ 00 │ +│ 0 │ {:D} │ 0 │ +│ 0 │ {:D2} │ 00 │ +│ 0 │ {:g} │ false │ +│ 0 │ {:G} │ false │ +│ 0 │ {:o} │ 0 │ +│ 0 │ {:o3} │ 000 │ +│ 0 │ {:O} │ 0 │ +│ 0 │ {:O3} │ 000 │ +│ 0 │ {:x} │ 0 │ +│ 0 │ {:x5} │ 00000 │ +│ 0 │ {:X} │ 0 │ +│ 0 │ {:X5} │ 00000 │ └───────────┴────────────┴──────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_boolean/src/format_boolean.cpp b/examples/xtd.core.examples/format/format_boolean/src/format_boolean.cpp index 2529264293b7..a36808500063 100644 --- a/examples/xtd.core.examples/format/format_boolean/src/format_boolean.cpp +++ b/examples/xtd.core.examples/format/format_boolean/src/format_boolean.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include using namespace xtd; @@ -13,27 +13,27 @@ auto print_boolean(const string& text, bool value, cap c) { << "│ boolean │ format │ representation │" << environment::new_line << "├───────────┼────────────┼──────────────────────────────────┤" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {} │ " << string::format("{}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:b} │ " << string::format("{:b}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:b4} │ " << string::format("{:b4}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:b8} │ " << string::format("{:b8}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:B} │ " << string::format("{:B}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:B4} │ " << string::format("{:B4}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:B8} │ " << string::format("{:B8}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:d} │ " << string::format("{:d}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:d2} │ " << string::format("{:d2}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:D} │ " << string::format("{:D}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:D2} │ " << string::format("{:D2}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:g} │ " << string::format("{:g}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:G} │ " << string::format("{:G}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:o} │ " << string::format("{:o}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:o3} │ " << string::format("{:o3}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:O} │ " << string::format("{:O}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:O3} │ " << string::format("{:O3}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:x} │ " << string::format("{:x}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:x5} │ " << string::format("{:x5}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:X} │ " << string::format("{:X}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:X5} │ " << string::format("{:X5}", value).pad_right(32) << " |" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {} │ " << format("{}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:b} │ " << format("{:b}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:b4} │ " << format("{:b4}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:b8} │ " << format("{:b8}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:B} │ " << format("{:B}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:B4} │ " << format("{:B4}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:B8} │ " << format("{:B8}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:d} │ " << format("{:d}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:d2} │ " << format("{:d2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:D} │ " << format("{:D}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:D2} │ " << format("{:D2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:g} │ " << format("{:g}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:G} │ " << format("{:G}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:o} │ " << format("{:o}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:o3} │ " << format("{:o3}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:O} │ " << format("{:O}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:O3} │ " << format("{:O3}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:x} │ " << format("{:x}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:x5} │ " << format("{:x5}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:X} │ " << format("{:X}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:X5} │ " << format("{:X5}", value).pad_right(32) << " │" << environment::new_line; if (c != cap::end) console::out << "├───────────┼────────────┼──────────────────────────────────┤" << environment::new_line; @@ -53,91 +53,91 @@ auto main() -> int { // ┌───────────┬────────────┬──────────────────────────────────┐ // │ boolean │ format │ representation │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ true │ {} │ true | -// │ true │ {:b} │ 1 | -// │ true │ {:b4} │ 0001 | -// │ true │ {:b8} │ 00000001 | -// │ true │ {:B} │ 1 | -// │ true │ {:B4} │ 0001 | -// │ true │ {:B8} │ 00000001 | -// │ true │ {:d} │ 1 | -// │ true │ {:d2} │ 01 | -// │ true │ {:D} │ 1 | -// │ true │ {:D2} │ 01 | -// │ true │ {:g} │ true | -// │ true │ {:G} │ true | -// │ true │ {:o} │ 1 | -// │ true │ {:o3} │ 001 | -// │ true │ {:O} │ 1 | -// │ true │ {:O3} │ 001 | -// │ true │ {:x} │ 1 | -// │ true │ {:x5} │ 00001 | -// │ true │ {:X} │ 1 | -// │ true │ {:X5} │ 00001 | +// │ true │ {} │ true │ +// │ true │ {:b} │ 1 │ +// │ true │ {:b4} │ 0001 │ +// │ true │ {:b8} │ 00000001 │ +// │ true │ {:B} │ 1 │ +// │ true │ {:B4} │ 0001 │ +// │ true │ {:B8} │ 00000001 │ +// │ true │ {:d} │ 1 │ +// │ true │ {:d2} │ 01 │ +// │ true │ {:D} │ 1 │ +// │ true │ {:D2} │ 01 │ +// │ true │ {:g} │ true │ +// │ true │ {:G} │ true │ +// │ true │ {:o} │ 1 │ +// │ true │ {:o3} │ 001 │ +// │ true │ {:O} │ 1 │ +// │ true │ {:O3} │ 001 │ +// │ true │ {:x} │ 1 │ +// │ true │ {:x5} │ 00001 │ +// │ true │ {:X} │ 1 │ +// │ true │ {:X5} │ 00001 │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ false │ {} │ false | -// │ false │ {:b} │ 0 | -// │ false │ {:b4} │ 0000 | -// │ false │ {:b8} │ 00000000 | -// │ false │ {:B} │ 0 | -// │ false │ {:B4} │ 0000 | -// │ false │ {:B8} │ 00000000 | -// │ false │ {:d} │ 0 | -// │ false │ {:d2} │ 00 | -// │ false │ {:D} │ 0 | -// │ false │ {:D2} │ 00 | -// │ false │ {:g} │ false | -// │ false │ {:G} │ false | -// │ false │ {:o} │ 0 | -// │ false │ {:o3} │ 000 | -// │ false │ {:O} │ 0 | -// │ false │ {:O3} │ 000 | -// │ false │ {:x} │ 0 | -// │ false │ {:x5} │ 00000 | -// │ false │ {:X} │ 0 | -// │ false │ {:X5} │ 00000 | +// │ false │ {} │ false │ +// │ false │ {:b} │ 0 │ +// │ false │ {:b4} │ 0000 │ +// │ false │ {:b8} │ 00000000 │ +// │ false │ {:B} │ 0 │ +// │ false │ {:B4} │ 0000 │ +// │ false │ {:B8} │ 00000000 │ +// │ false │ {:d} │ 0 │ +// │ false │ {:d2} │ 00 │ +// │ false │ {:D} │ 0 │ +// │ false │ {:D2} │ 00 │ +// │ false │ {:g} │ false │ +// │ false │ {:G} │ false │ +// │ false │ {:o} │ 0 │ +// │ false │ {:o3} │ 000 │ +// │ false │ {:O} │ 0 │ +// │ false │ {:O3} │ 000 │ +// │ false │ {:x} │ 0 │ +// │ false │ {:x5} │ 00000 │ +// │ false │ {:X} │ 0 │ +// │ false │ {:X5} │ 00000 │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ 1 │ {} │ true | -// │ 1 │ {:b} │ 1 | -// │ 1 │ {:b4} │ 0001 | -// │ 1 │ {:b8} │ 00000001 | -// │ 1 │ {:B} │ 1 | -// │ 1 │ {:B4} │ 0001 | -// │ 1 │ {:B8} │ 00000001 | -// │ 1 │ {:d} │ 1 | -// │ 1 │ {:d2} │ 01 | -// │ 1 │ {:D} │ 1 | -// │ 1 │ {:D2} │ 01 | -// │ 1 │ {:g} │ true | -// │ 1 │ {:G} │ true | -// │ 1 │ {:o} │ 1 | -// │ 1 │ {:o3} │ 001 | -// │ 1 │ {:O} │ 1 | -// │ 1 │ {:O3} │ 001 | -// │ 1 │ {:x} │ 1 | -// │ 1 │ {:x5} │ 00001 | -// │ 1 │ {:X} │ 1 | -// │ 1 │ {:X5} │ 00001 | +// │ 1 │ {} │ true │ +// │ 1 │ {:b} │ 1 │ +// │ 1 │ {:b4} │ 0001 │ +// │ 1 │ {:b8} │ 00000001 │ +// │ 1 │ {:B} │ 1 │ +// │ 1 │ {:B4} │ 0001 │ +// │ 1 │ {:B8} │ 00000001 │ +// │ 1 │ {:d} │ 1 │ +// │ 1 │ {:d2} │ 01 │ +// │ 1 │ {:D} │ 1 │ +// │ 1 │ {:D2} │ 01 │ +// │ 1 │ {:g} │ true │ +// │ 1 │ {:G} │ true │ +// │ 1 │ {:o} │ 1 │ +// │ 1 │ {:o3} │ 001 │ +// │ 1 │ {:O} │ 1 │ +// │ 1 │ {:O3} │ 001 │ +// │ 1 │ {:x} │ 1 │ +// │ 1 │ {:x5} │ 00001 │ +// │ 1 │ {:X} │ 1 │ +// │ 1 │ {:X5} │ 00001 │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ 0 │ {} │ false | -// │ 0 │ {:b} │ 0 | -// │ 0 │ {:b4} │ 0000 | -// │ 0 │ {:b8} │ 00000000 | -// │ 0 │ {:B} │ 0 | -// │ 0 │ {:B4} │ 0000 | -// │ 0 │ {:B8} │ 00000000 | -// │ 0 │ {:d} │ 0 | -// │ 0 │ {:d2} │ 00 | -// │ 0 │ {:D} │ 0 | -// │ 0 │ {:D2} │ 00 | -// │ 0 │ {:g} │ false | -// │ 0 │ {:G} │ false | -// │ 0 │ {:o} │ 0 | -// │ 0 │ {:o3} │ 000 | -// │ 0 │ {:O} │ 0 | -// │ 0 │ {:O3} │ 000 | -// │ 0 │ {:x} │ 0 | -// │ 0 │ {:x5} │ 00000 | -// │ 0 │ {:X} │ 0 | -// │ 0 │ {:X5} │ 00000 | +// │ 0 │ {} │ false │ +// │ 0 │ {:b} │ 0 │ +// │ 0 │ {:b4} │ 0000 │ +// │ 0 │ {:b8} │ 00000000 │ +// │ 0 │ {:B} │ 0 │ +// │ 0 │ {:B4} │ 0000 │ +// │ 0 │ {:B8} │ 00000000 │ +// │ 0 │ {:d} │ 0 │ +// │ 0 │ {:d2} │ 00 │ +// │ 0 │ {:D} │ 0 │ +// │ 0 │ {:D2} │ 00 │ +// │ 0 │ {:g} │ false │ +// │ 0 │ {:G} │ false │ +// │ 0 │ {:o} │ 0 │ +// │ 0 │ {:o3} │ 000 │ +// │ 0 │ {:O} │ 0 │ +// │ 0 │ {:O3} │ 000 │ +// │ 0 │ {:x} │ 0 │ +// │ 0 │ {:x5} │ 00000 │ +// │ 0 │ {:X} │ 0 │ +// │ 0 │ {:X5} │ 00000 │ // └───────────┴────────────┴──────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_character/README.md b/examples/xtd.core.examples/format/format_character/README.md index c27612393a55..4609a544d833 100644 --- a/examples/xtd.core.examples/format/format_character/README.md +++ b/examples/xtd.core.examples/format/format_character/README.md @@ -22,50 +22,50 @@ xtdc run ┌───────────┬────────────┬──────────────────────────────────┐ │ char │ format │ representation │ ├───────────┼────────────┼──────────────────────────────────┤ -│ a │ {} │ a | -│ a │ {:g} │ a | -│ a │ {:G} │ a | -│ a │ {:d} │ a | -│ a │ {:D} │ a | -│ a │ {:x} │ a | -│ a │ {:X} │ a | -│ a │ {:ANY_FMT} │ a | +│ a │ {} │ a │ +│ a │ {:g} │ a │ +│ a │ {:G} │ a │ +│ a │ {:d} │ a │ +│ a │ {:D} │ a │ +│ a │ {:x} │ a │ +│ a │ {:X} │ a │ +│ a │ {:ANY_FMT} │ a │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 1 │ {} │ 1 | -│ 1 │ {:g} │ 1 | -│ 1 │ {:G} │ 1 | -│ 1 │ {:d} │ 1 | -│ 1 │ {:D} │ 1 | -│ 1 │ {:x} │ 1 | -│ 1 │ {:X} │ 1 | -│ 1 │ {:ANY_FMT} │ 1 | +│ 1 │ {} │ 1 │ +│ 1 │ {:g} │ 1 │ +│ 1 │ {:G} │ 1 │ +│ 1 │ {:d} │ 1 │ +│ 1 │ {:D} │ 1 │ +│ 1 │ {:x} │ 1 │ +│ 1 │ {:X} │ 1 │ +│ 1 │ {:ANY_FMT} │ 1 │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 😃 │ {} │ 😃 | -│ 😃 │ {:g} │ 😃 | -│ 😃 │ {:G} │ 😃 | -│ 😃 │ {:d} │ 😃 | -│ 😃 │ {:D} │ 😃 | -│ 😃 │ {:x} │ 😃 | -│ 😃 │ {:X} │ 😃 | -│ 😃 │ {:ANY_FMT} │ 😃 | +│ 😃 │ {} │ 😃 │ +│ 😃 │ {:g} │ 😃 │ +│ 😃 │ {:G} │ 😃 │ +│ 😃 │ {:d} │ 😃 │ +│ 😃 │ {:D} │ 😃 │ +│ 😃 │ {:x} │ 😃 │ +│ 😃 │ {:X} │ 😃 │ +│ 😃 │ {:ANY_FMT} │ 😃 │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 亰 │ {} │ 亰 | -│ 亰 │ {:g} │ 亰 | -│ 亰 │ {:G} │ 亰 | -│ 亰 │ {:d} │ 亰 | -│ 亰 │ {:D} │ 亰 | -│ 亰 │ {:x} │ 亰 | -│ 亰 │ {:X} │ 亰 | -│ 亰 │ {:ANY_FMT} │ 亰 | +│ 亰 │ {} │ 亰 │ +│ 亰 │ {:g} │ 亰 │ +│ 亰 │ {:G} │ 亰 │ +│ 亰 │ {:d} │ 亰 │ +│ 亰 │ {:D} │ 亰 │ +│ 亰 │ {:x} │ 亰 │ +│ 亰 │ {:X} │ 亰 │ +│ 亰 │ {:ANY_FMT} │ 亰 │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 🐨 │ {} │ 🐨 | -│ 🐨 │ {:g} │ 🐨 | -│ 🐨 │ {:G} │ 🐨 | -│ 🐨 │ {:d} │ 🐨 | -│ 🐨 │ {:D} │ 🐨 | -│ 🐨 │ {:x} │ 🐨 | -│ 🐨 │ {:X} │ 🐨 | -│ 🐨 │ {:ANY_FMT} │ 🐨 | +│ 🐨 │ {} │ 🐨 │ +│ 🐨 │ {:g} │ 🐨 │ +│ 🐨 │ {:G} │ 🐨 │ +│ 🐨 │ {:d} │ 🐨 │ +│ 🐨 │ {:D} │ 🐨 │ +│ 🐨 │ {:x} │ 🐨 │ +│ 🐨 │ {:X} │ 🐨 │ +│ 🐨 │ {:ANY_FMT} │ 🐨 │ └───────────┴────────────┴──────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_character/src/format_character.cpp b/examples/xtd.core.examples/format/format_character/src/format_character.cpp index 6d4245ffaf2d..0c271906d1f3 100644 --- a/examples/xtd.core.examples/format/format_character/src/format_character.cpp +++ b/examples/xtd.core.examples/format/format_character/src/format_character.cpp @@ -1,7 +1,6 @@ #include #include -#include -#include +#include using namespace xtd; @@ -14,14 +13,14 @@ auto print_character(const u32string& text, char32 value, cap c) { << "│ char │ format │ representation │" << environment::new_line << "├───────────┼────────────┼──────────────────────────────────┤" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {} │ " << u32string::format("{}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:g} │ " << u32string::format("{:g}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:G} │ " << u32string::format("{:G}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:d} │ " << u32string::format("{:d}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:D} │ " << u32string::format("{:D}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:x} │ " << u32string::format("{:x}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:X} │ " << u32string::format("{:X}", value).pad_right(32) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(9) << " │ {:ANY_FMT} │ " << u32string::format("{:ANY_FMT}", value).pad_right(32) << " |" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {} │ " << format(U"{}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:g} │ " << format(U"{:g}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:G} │ " << format(U"{:G}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:d} │ " << format(U"{:d}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:D} │ " << format(U"{:D}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:x} │ " << format(U"{:x}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:X} │ " << format(U"{:X}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(9) << " │ {:ANY_FMT} │ " << format(U"{:ANY_FMT}", value).pad_right(32) << " │" << environment::new_line; if (c != cap::end) console::out << "├───────────┼────────────┼──────────────────────────────────┤" << environment::new_line; @@ -44,48 +43,48 @@ auto main() -> int { // ┌───────────┬────────────┬──────────────────────────────────┐ // │ char │ format │ representation │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ a │ {} │ a | -// │ a │ {:g} │ a | -// │ a │ {:G} │ a | -// │ a │ {:d} │ a | -// │ a │ {:D} │ a | -// │ a │ {:x} │ a | -// │ a │ {:X} │ a | -// │ a │ {:ANY_FMT} │ a | +// │ a │ {} │ a │ +// │ a │ {:g} │ a │ +// │ a │ {:G} │ a │ +// │ a │ {:d} │ a │ +// │ a │ {:D} │ a │ +// │ a │ {:x} │ a │ +// │ a │ {:X} │ a │ +// │ a │ {:ANY_FMT} │ a │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ 1 │ {} │ 1 | -// │ 1 │ {:g} │ 1 | -// │ 1 │ {:G} │ 1 | -// │ 1 │ {:d} │ 1 | -// │ 1 │ {:D} │ 1 | -// │ 1 │ {:x} │ 1 | -// │ 1 │ {:X} │ 1 | -// │ 1 │ {:ANY_FMT} │ 1 | +// │ 1 │ {} │ 1 │ +// │ 1 │ {:g} │ 1 │ +// │ 1 │ {:G} │ 1 │ +// │ 1 │ {:d} │ 1 │ +// │ 1 │ {:D} │ 1 │ +// │ 1 │ {:x} │ 1 │ +// │ 1 │ {:X} │ 1 │ +// │ 1 │ {:ANY_FMT} │ 1 │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ 😃 │ {} │ 😃 | -// │ 😃 │ {:g} │ 😃 | -// │ 😃 │ {:G} │ 😃 | -// │ 😃 │ {:d} │ 😃 | -// │ 😃 │ {:D} │ 😃 | -// │ 😃 │ {:x} │ 😃 | -// │ 😃 │ {:X} │ 😃 | -// │ 😃 │ {:ANY_FMT} │ 😃 | +// │ 😃 │ {} │ 😃 │ +// │ 😃 │ {:g} │ 😃 │ +// │ 😃 │ {:G} │ 😃 │ +// │ 😃 │ {:d} │ 😃 │ +// │ 😃 │ {:D} │ 😃 │ +// │ 😃 │ {:x} │ 😃 │ +// │ 😃 │ {:X} │ 😃 │ +// │ 😃 │ {:ANY_FMT} │ 😃 │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ 亰 │ {} │ 亰 | -// │ 亰 │ {:g} │ 亰 | -// │ 亰 │ {:G} │ 亰 | -// │ 亰 │ {:d} │ 亰 | -// │ 亰 │ {:D} │ 亰 | -// │ 亰 │ {:x} │ 亰 | -// │ 亰 │ {:X} │ 亰 | -// │ 亰 │ {:ANY_FMT} │ 亰 | +// │ 亰 │ {} │ 亰 │ +// │ 亰 │ {:g} │ 亰 │ +// │ 亰 │ {:G} │ 亰 │ +// │ 亰 │ {:d} │ 亰 │ +// │ 亰 │ {:D} │ 亰 │ +// │ 亰 │ {:x} │ 亰 │ +// │ 亰 │ {:X} │ 亰 │ +// │ 亰 │ {:ANY_FMT} │ 亰 │ // ├───────────┼────────────┼──────────────────────────────────┤ -// │ 🐨 │ {} │ 🐨 | -// │ 🐨 │ {:g} │ 🐨 | -// │ 🐨 │ {:G} │ 🐨 | -// │ 🐨 │ {:d} │ 🐨 | -// │ 🐨 │ {:D} │ 🐨 | -// │ 🐨 │ {:x} │ 🐨 | -// │ 🐨 │ {:X} │ 🐨 | -// │ 🐨 │ {:ANY_FMT} │ 🐨 | +// │ 🐨 │ {} │ 🐨 │ +// │ 🐨 │ {:g} │ 🐨 │ +// │ 🐨 │ {:G} │ 🐨 │ +// │ 🐨 │ {:d} │ 🐨 │ +// │ 🐨 │ {:D} │ 🐨 │ +// │ 🐨 │ {:x} │ 🐨 │ +// │ 🐨 │ {:X} │ 🐨 │ +// │ 🐨 │ {:ANY_FMT} │ 🐨 │ // └───────────┴────────────┴──────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_class/src/format_class.cpp b/examples/xtd.core.examples/format/format_class/src/format_class.cpp index 5fcc65addef8..a1c6bc59d6d4 100644 --- a/examples/xtd.core.examples/format/format_class/src/format_class.cpp +++ b/examples/xtd.core.examples/format/format_class/src/format_class.cpp @@ -1,12 +1,12 @@ #include #include #include -#include +#include using namespace xtd; using namespace xtd::collections::generic; -class character { +class character : public istringable { public: character() = default; character(const string& name, const string& rank) noexcept : name_(name), rank_(rank) {} @@ -14,10 +14,8 @@ class character { const string& name() const noexcept {return name_;} const string& rank() const noexcept {return rank_;} - string to_string() const noexcept {return name_ + " (" + rank_ + ")";} + string to_string() const noexcept override {return name_ + " (" + rank_ + ")";} - // Only this operator is needed for character class to be recognized by string::format() without specified formating. - friend std::ostream& operator <<(std::ostream& os, const character& value) noexcept {return os << value.to_string();} friend bool operator ==(const character& lhs, const character& rhs) noexcept {return lhs.name() == rhs.name() && lhs.rank() == rhs.rank();} private: @@ -29,7 +27,7 @@ using characters = list; auto main() -> int { for (auto c : characters {{"Jean-Luc Picard", "Captain"}, {"William Riker", "Commander"}, {"Data", "Commander"}, {"Beverly Crusher", "Commander"}, {"Geordi La Forge", "Lieutenant Commander"}, {"Worf", "Lieutenant Commander"}, {"Tasha Yar", "Lieutenant"}}) - console::out << string::format("{}", c) << environment::new_line; + console::out << format("{}", c) << environment::new_line; } // This code produces the following output : diff --git a/examples/xtd.core.examples/format/format_class_object/src/format_class_object.cpp b/examples/xtd.core.examples/format/format_class_object/src/format_class_object.cpp index 81a42b3a1982..8dae450c8ec5 100644 --- a/examples/xtd.core.examples/format/format_class_object/src/format_class_object.cpp +++ b/examples/xtd.core.examples/format/format_class_object/src/format_class_object.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include using namespace xtd; using namespace xtd::collections::generic; @@ -25,7 +25,7 @@ using characters = list; auto main() -> int { for (auto c : characters {{"Jean-Luc Picard", "Captain"}, {"William Riker", "Commander"}, {"Data", "Commander"}, {"Beverly Crusher", "Commander"}, {"Geordi La Forge", "Lieutenant Commander"}, {"Worf", "Lieutenant Commander"}, {"Tasha Yar", "Lieutenant"}}) - console::out << string::format("{}", c) << environment::new_line; + console::out << format("{}", c) << environment::new_line; } // This code produces the following output : diff --git a/examples/xtd.core.examples/format/format_class_with_specified_formating/README.md b/examples/xtd.core.examples/format/format_class_with_specified_formating/README.md index c6840426bfb3..75c39f1fdb44 100644 --- a/examples/xtd.core.examples/format/format_class_with_specified_formating/README.md +++ b/examples/xtd.core.examples/format/format_class_with_specified_formating/README.md @@ -19,9 +19,48 @@ xtdc run # Output (with colors) ``` -Jean-Luc Picard (Captain) -Jean-Luc Picard (Captain) -Jean-Luc Picard -Captain +┌───────────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐ +│ character │ format │ representation │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {} │ {} │ () │ +│ {} │ {:F} │ () │ +│ {} │ {:N} │ │ +│ {} │ {:R} │ │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Jean-Luc Picard", "Captain"} │ {} │ Jean-Luc Picard (Captain) │ +│ {"Jean-Luc Picard", "Captain"} │ {:F} │ Jean-Luc Picard (Captain) │ +│ {"Jean-Luc Picard", "Captain"} │ {:N} │ Jean-Luc Picard │ +│ {"Jean-Luc Picard", "Captain"} │ {:R} │ Captain │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"William Riker", "Commander"} │ {} │ William Riker (Commander) │ +│ {"William Riker", "Commander"} │ {:F} │ William Riker (Commander) │ +│ {"William Riker", "Commander"} │ {:N} │ William Riker │ +│ {"William Riker", "Commander"} │ {:R} │ Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Data", "Commander"} │ {} │ Data (Commander) │ +│ {"Data", "Commander"} │ {:F} │ Data (Commander) │ +│ {"Data", "Commander"} │ {:N} │ Data │ +│ {"Data", "Commander"} │ {:R} │ Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Beverly Crusher", "Commander"} │ {} │ Beverly Crusher (Commander) │ +│ {"Beverly Crusher", "Commander"} │ {:F} │ Beverly Crusher (Commander) │ +│ {"Beverly Crusher", "Commander"} │ {:N} │ Beverly Crusher │ +│ {"Beverly Crusher", "Commander"} │ {:R} │ Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {} │ Geordi La Forge (Lieutenant Commander) │ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {:F} │ Geordi La Forge (Lieutenant Commander) │ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {:N} │ Geordi La Forge │ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Worf", "Lieutenant Commander"} │ {} │ Worf (Lieutenant Commander) │ +│ {"Worf", "Lieutenant Commander"} │ {:F} │ Worf (Lieutenant Commander) │ +│ {"Worf", "Lieutenant Commander"} │ {:N} │ Worf │ +│ {"Worf", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Tasha Yar", "Lieutenant"} │ {} │ Tasha Yar (Lieutenant) │ +│ {"Tasha Yar", "Lieutenant"} │ {:F} │ Tasha Yar (Lieutenant) │ +│ {"Tasha Yar", "Lieutenant"} │ {:N} │ Tasha Yar │ +│ {"Tasha Yar", "Lieutenant"} │ {:R} │ Lieutenant │ +└───────────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_class_with_specified_formating/src/format_class_with_specified_formating.cpp b/examples/xtd.core.examples/format/format_class_with_specified_formating/src/format_class_with_specified_formating.cpp index b80c91831837..0914a13a50af 100644 --- a/examples/xtd.core.examples/format/format_class_with_specified_formating/src/format_class_with_specified_formating.cpp +++ b/examples/xtd.core.examples/format/format_class_with_specified_formating/src/format_class_with_specified_formating.cpp @@ -1,12 +1,12 @@ -#include #include #include -#include +#include using namespace xtd; class character : public iformatable { public: + character() = default; character(const string& name, const string& rank) noexcept : name_(name), rank_(rank) {} const string& name() const noexcept {return name_;} @@ -26,18 +26,79 @@ class character : public iformatable { string rank_; }; +enum class cap {title, middle, end}; + +auto print_character(const string& text, const character& value, cap c) { + if (c == cap::title) + console::out + << "┌───────────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐" << environment::new_line + << "│ character │ format │ representation │" << environment::new_line + << "├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; + + console::out << "│ " << text.pad_right(45) << " │ {} │ " << format("{}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(45) << " │ {:F} │ " << format("{:F}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(45) << " │ {:N} │ " << format("{:N}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(45) << " │ {:R} │ " << format("{:R}", value).pad_right(40) << " │" << environment::new_line; + + if (c != cap::end) + console::out << "├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; + else + console::out << "└───────────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘" << environment::new_line; +} + auto main() -> int { - auto c = character {"Jean-Luc Picard", "Captain"}; - - console::out << string::format("{}", c) << environment::new_line; - console::out << string::format("{:F}", c) << environment::new_line; - console::out << string::format("{:N}", c) << environment::new_line; - console::out << string::format("{:R}", c) << environment::new_line; + print_character("{}", character {}, cap::title); + print_character("{\"Jean-Luc Picard\", \"Captain\"}", character {"Jean-Luc Picard", "Captain"}, cap::middle); + print_character("{\"William Riker\", \"Commander\"}", character {"William Riker", "Commander"}, cap::middle); + print_character("{\"Data\", \"Commander\"}", character {"Data", "Commander"}, cap::middle); + print_character("{\"Beverly Crusher\", \"Commander\"}", character {"Beverly Crusher", "Commander"}, cap::middle); + print_character("{\"Geordi La Forge\", \"Lieutenant Commander\"}", character {"Geordi La Forge", "Lieutenant Commander"}, cap::middle); + print_character("{\"Worf\", \"Lieutenant Commander\"}", character {"Worf", "Lieutenant Commander"}, cap::middle); + print_character("{\"Tasha Yar\", \"Lieutenant\"}", character {"Tasha Yar", "Lieutenant"}, cap::end); } // This code produces the following output : // -// Jean-Luc Picard (Captain) -// Jean-Luc Picard (Captain) -// Jean-Luc Picard -// Captain +// ┌───────────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐ +// │ character │ format │ representation │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {} │ {} │ () │ +// │ {} │ {:F} │ () │ +// │ {} │ {:N} │ │ +// │ {} │ {:R} │ │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Jean-Luc Picard", "Captain"} │ {} │ Jean-Luc Picard (Captain) │ +// │ {"Jean-Luc Picard", "Captain"} │ {:F} │ Jean-Luc Picard (Captain) │ +// │ {"Jean-Luc Picard", "Captain"} │ {:N} │ Jean-Luc Picard │ +// │ {"Jean-Luc Picard", "Captain"} │ {:R} │ Captain │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"William Riker", "Commander"} │ {} │ William Riker (Commander) │ +// │ {"William Riker", "Commander"} │ {:F} │ William Riker (Commander) │ +// │ {"William Riker", "Commander"} │ {:N} │ William Riker │ +// │ {"William Riker", "Commander"} │ {:R} │ Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Data", "Commander"} │ {} │ Data (Commander) │ +// │ {"Data", "Commander"} │ {:F} │ Data (Commander) │ +// │ {"Data", "Commander"} │ {:N} │ Data │ +// │ {"Data", "Commander"} │ {:R} │ Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Beverly Crusher", "Commander"} │ {} │ Beverly Crusher (Commander) │ +// │ {"Beverly Crusher", "Commander"} │ {:F} │ Beverly Crusher (Commander) │ +// │ {"Beverly Crusher", "Commander"} │ {:N} │ Beverly Crusher │ +// │ {"Beverly Crusher", "Commander"} │ {:R} │ Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {} │ Geordi La Forge (Lieutenant Commander) │ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {:F} │ Geordi La Forge (Lieutenant Commander) │ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {:N} │ Geordi La Forge │ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Worf", "Lieutenant Commander"} │ {} │ Worf (Lieutenant Commander) │ +// │ {"Worf", "Lieutenant Commander"} │ {:F} │ Worf (Lieutenant Commander) │ +// │ {"Worf", "Lieutenant Commander"} │ {:N} │ Worf │ +// │ {"Worf", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Tasha Yar", "Lieutenant"} │ {} │ Tasha Yar (Lieutenant) │ +// │ {"Tasha Yar", "Lieutenant"} │ {:F} │ Tasha Yar (Lieutenant) │ +// │ {"Tasha Yar", "Lieutenant"} │ {:N} │ Tasha Yar │ +// │ {"Tasha Yar", "Lieutenant"} │ {:R} │ Lieutenant │ +// └───────────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/README.md b/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/README.md index 844a05b60d67..96e19cdeba80 100644 --- a/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/README.md +++ b/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/README.md @@ -19,9 +19,48 @@ xtdc run # Output (with colors) ``` -Jean-Luc Picard (Captain) -Jean-Luc Picard (Captain) -Jean-Luc Picard -Captain +┌───────────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐ +│ character │ format │ representation │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {} │ {} │ () │ +│ {} │ {:F} │ () │ +│ {} │ {:N} │ │ +│ {} │ {:R} │ │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Jean-Luc Picard", "Captain"} │ {} │ Jean-Luc Picard (Captain) │ +│ {"Jean-Luc Picard", "Captain"} │ {:F} │ Jean-Luc Picard (Captain) │ +│ {"Jean-Luc Picard", "Captain"} │ {:N} │ Jean-Luc Picard │ +│ {"Jean-Luc Picard", "Captain"} │ {:R} │ Captain │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"William Riker", "Commander"} │ {} │ William Riker (Commander) │ +│ {"William Riker", "Commander"} │ {:F} │ William Riker (Commander) │ +│ {"William Riker", "Commander"} │ {:N} │ William Riker │ +│ {"William Riker", "Commander"} │ {:R} │ Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Data", "Commander"} │ {} │ Data (Commander) │ +│ {"Data", "Commander"} │ {:F} │ Data (Commander) │ +│ {"Data", "Commander"} │ {:N} │ Data │ +│ {"Data", "Commander"} │ {:R} │ Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Beverly Crusher", "Commander"} │ {} │ Beverly Crusher (Commander) │ +│ {"Beverly Crusher", "Commander"} │ {:F} │ Beverly Crusher (Commander) │ +│ {"Beverly Crusher", "Commander"} │ {:N} │ Beverly Crusher │ +│ {"Beverly Crusher", "Commander"} │ {:R} │ Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {} │ Geordi La Forge (Lieutenant Commander) │ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {:F} │ Geordi La Forge (Lieutenant Commander) │ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {:N} │ Geordi La Forge │ +│ {"Geordi La Forge", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Worf", "Lieutenant Commander"} │ {} │ Worf (Lieutenant Commander) │ +│ {"Worf", "Lieutenant Commander"} │ {:F} │ Worf (Lieutenant Commander) │ +│ {"Worf", "Lieutenant Commander"} │ {:N} │ Worf │ +│ {"Worf", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +│ {"Tasha Yar", "Lieutenant"} │ {} │ Tasha Yar (Lieutenant) │ +│ {"Tasha Yar", "Lieutenant"} │ {:F} │ Tasha Yar (Lieutenant) │ +│ {"Tasha Yar", "Lieutenant"} │ {:N} │ Tasha Yar │ +│ {"Tasha Yar", "Lieutenant"} │ {:R} │ Lieutenant │ +└───────────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/src/format_class_with_specified_formating_with_to_string.cpp b/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/src/format_class_with_specified_formating_with_to_string.cpp index 64c971bf1f00..00f6b05396b6 100644 --- a/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/src/format_class_with_specified_formating_with_to_string.cpp +++ b/examples/xtd.core.examples/format/format_class_with_specified_formating_with_to_string/src/format_class_with_specified_formating_with_to_string.cpp @@ -1,12 +1,12 @@ -#include #include #include -#include +#include using namespace xtd; class character { public: + character() = default; character(const string& name, const string& rank) noexcept : name_(name), rank_(rank) {} const string& name() const noexcept {return name_;} @@ -29,18 +29,79 @@ class character { template<> std::string xtd::to_string(const character& value, const std::string& fmt, const std::locale& loc) {return value.to_string(fmt, loc);} +enum class cap {title, middle, end}; + +auto print_character(const string& text, const character& value, cap c) { + if (c == cap::title) + console::out + << "┌───────────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐" << environment::new_line + << "│ character │ format │ representation │" << environment::new_line + << "├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; + + console::out << "│ " << text.pad_right(45) << " │ {} │ " << format("{}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(45) << " │ {:F} │ " << format("{:F}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(45) << " │ {:N} │ " << format("{:N}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(45) << " │ {:R} │ " << format("{:R}", value).pad_right(40) << " │" << environment::new_line; + + if (c != cap::end) + console::out << "├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; + else + console::out << "└───────────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘" << environment::new_line; +} + auto main() -> int { - auto c = character {"Jean-Luc Picard", "Captain"}; - - console::out << string::format("{}", c) << environment::new_line; - console::out << string::format("{:F}", c) << environment::new_line; - console::out << string::format("{:N}", c) << environment::new_line; - console::out << string::format("{:R}", c) << environment::new_line; + print_character("{}", character {}, cap::title); + print_character("{\"Jean-Luc Picard\", \"Captain\"}", character {"Jean-Luc Picard", "Captain"}, cap::middle); + print_character("{\"William Riker\", \"Commander\"}", character {"William Riker", "Commander"}, cap::middle); + print_character("{\"Data\", \"Commander\"}", character {"Data", "Commander"}, cap::middle); + print_character("{\"Beverly Crusher\", \"Commander\"}", character {"Beverly Crusher", "Commander"}, cap::middle); + print_character("{\"Geordi La Forge\", \"Lieutenant Commander\"}", character {"Geordi La Forge", "Lieutenant Commander"}, cap::middle); + print_character("{\"Worf\", \"Lieutenant Commander\"}", character {"Worf", "Lieutenant Commander"}, cap::middle); + print_character("{\"Tasha Yar\", \"Lieutenant\"}", character {"Tasha Yar", "Lieutenant"}, cap::end); } // This code produces the following output : // -// Jean-Luc Picard (Captain) -// Jean-Luc Picard (Captain) -// Jean-Luc Picard -// Captain +// ┌───────────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐ +// │ character │ format │ representation │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {} │ {} │ () │ +// │ {} │ {:F} │ () │ +// │ {} │ {:N} │ │ +// │ {} │ {:R} │ │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Jean-Luc Picard", "Captain"} │ {} │ Jean-Luc Picard (Captain) │ +// │ {"Jean-Luc Picard", "Captain"} │ {:F} │ Jean-Luc Picard (Captain) │ +// │ {"Jean-Luc Picard", "Captain"} │ {:N} │ Jean-Luc Picard │ +// │ {"Jean-Luc Picard", "Captain"} │ {:R} │ Captain │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"William Riker", "Commander"} │ {} │ William Riker (Commander) │ +// │ {"William Riker", "Commander"} │ {:F} │ William Riker (Commander) │ +// │ {"William Riker", "Commander"} │ {:N} │ William Riker │ +// │ {"William Riker", "Commander"} │ {:R} │ Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Data", "Commander"} │ {} │ Data (Commander) │ +// │ {"Data", "Commander"} │ {:F} │ Data (Commander) │ +// │ {"Data", "Commander"} │ {:N} │ Data │ +// │ {"Data", "Commander"} │ {:R} │ Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Beverly Crusher", "Commander"} │ {} │ Beverly Crusher (Commander) │ +// │ {"Beverly Crusher", "Commander"} │ {:F} │ Beverly Crusher (Commander) │ +// │ {"Beverly Crusher", "Commander"} │ {:N} │ Beverly Crusher │ +// │ {"Beverly Crusher", "Commander"} │ {:R} │ Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {} │ Geordi La Forge (Lieutenant Commander) │ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {:F} │ Geordi La Forge (Lieutenant Commander) │ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {:N} │ Geordi La Forge │ +// │ {"Geordi La Forge", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Worf", "Lieutenant Commander"} │ {} │ Worf (Lieutenant Commander) │ +// │ {"Worf", "Lieutenant Commander"} │ {:F} │ Worf (Lieutenant Commander) │ +// │ {"Worf", "Lieutenant Commander"} │ {:N} │ Worf │ +// │ {"Worf", "Lieutenant Commander"} │ {:R} │ Lieutenant Commander │ +// ├───────────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ +// │ {"Tasha Yar", "Lieutenant"} │ {} │ Tasha Yar (Lieutenant) │ +// │ {"Tasha Yar", "Lieutenant"} │ {:F} │ Tasha Yar (Lieutenant) │ +// │ {"Tasha Yar", "Lieutenant"} │ {:N} │ Tasha Yar │ +// │ {"Tasha Yar", "Lieutenant"} │ {:R} │ Lieutenant │ +// └───────────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_date_time/README.md b/examples/xtd.core.examples/format/format_date_time/README.md index ae811a0d5640..d7e628483164 100644 --- a/examples/xtd.core.examples/format/format_date_time/README.md +++ b/examples/xtd.core.examples/format/format_date_time/README.md @@ -22,348 +22,348 @@ xtdc run ┌─────────────────────────────┬────────────┬──────────────────────────────────────────┐ │ date_time │ format │ representation │ ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ {} │ {} │ Mon Jan 1 00:00:00 0001 | -│ {} │ {:a} │ AM | -│ {} │ {:b} │ 000 | -│ {} │ {:B} │ 0 | -│ {} │ {:c} │ 0000000 | -│ {} │ {:C} │ 0 | -│ {} │ {:d} │ 01/01/1 | -│ {} │ {:D} │ 1/01/1 | -│ {} │ {:e} │ 00 | -│ {} │ {:E} │ 0 | -│ {} │ {:f} │ Mon Jan 1 00:00:00 0001 | -│ {} │ {:F} │ Mon Jan 1 00:00:00 0001 | -│ {} │ {:g} │ Mon Jan 1 00:00:00 0001 | -│ {} │ {:G} │ Mon Jan 1 00:00:00 0001 | -│ {} │ {:h} │ Mon | -│ {} │ {:H} │ Monday | -│ {} │ {:i} │ 01 | -│ {} │ {:I} │ 1 | -│ {} │ {:j} │ Jan | -│ {} │ {:J} │ January | -│ {} │ {:k} │ 01 | -│ {} │ {:K} │ 1 | -│ {} │ {:l} │ 01 | -│ {} │ {:L} │ 0001 | -│ {} │ {:m} │ 1 | -│ {} │ {:M} │ January 1 | -│ {} │ {:n} │ Monday, 1 January 1 | -│ {} │ {:n} │ Monday, 1 January 1 0:00:00 | -│ {} │ {:o} │ 1 January 1 | -│ {} │ {:O} │ 1 January 1 | -│ {} │ {:p} │ 00 | -│ {} │ {:P} │ 0 | -│ {} │ {:s} │ 0001-01-01T00:00:00.0000000 | -│ {} │ {:S} │ 0001-01-01T00:00:00.000 | -│ {} │ {:t} │ 00:00:00 | -│ {} │ {:T} │ 0:00:00 | -│ {} │ {:u} │ 1-01-01 00:00:00 | -│ {} │ {:U} │ Monday, 1 January 1 0:00:00 | -│ {} │ {:v} │ 00:00 | -│ {} │ {:V} │ 0:00 | -│ {} │ {:w} │ 00 | -│ {} │ {:W} │ 0 | -│ {} │ {:x} │ 00 | -│ {} │ {:X} │ 0 | -│ {} │ {:y} │ January 1 | -│ {} │ {:Y} │ January 1 | -│ {} │ {:z} │ UTC | -│ {} │ {:Z} │ UTC | +│ {} │ {} │ Mon Jan 1 00:00:00 0001 │ +│ {} │ {:a} │ AM │ +│ {} │ {:b} │ 000 │ +│ {} │ {:B} │ 0 │ +│ {} │ {:c} │ 0000000 │ +│ {} │ {:C} │ 0 │ +│ {} │ {:d} │ 01/01/1 │ +│ {} │ {:D} │ 1/01/1 │ +│ {} │ {:e} │ 00 │ +│ {} │ {:E} │ 0 │ +│ {} │ {:f} │ Mon Jan 1 00:00:00 0001 │ +│ {} │ {:F} │ Mon Jan 1 00:00:00 0001 │ +│ {} │ {:g} │ Mon Jan 1 00:00:00 0001 │ +│ {} │ {:G} │ Mon Jan 1 00:00:00 0001 │ +│ {} │ {:h} │ Mon │ +│ {} │ {:H} │ Monday │ +│ {} │ {:i} │ 01 │ +│ {} │ {:I} │ 1 │ +│ {} │ {:j} │ Jan │ +│ {} │ {:J} │ January │ +│ {} │ {:k} │ 01 │ +│ {} │ {:K} │ 1 │ +│ {} │ {:l} │ 01 │ +│ {} │ {:L} │ 0001 │ +│ {} │ {:m} │ 1 │ +│ {} │ {:M} │ January 1 │ +│ {} │ {:n} │ Monday, 1 January 1 │ +│ {} │ {:n} │ Monday, 1 January 1 0:00:00 │ +│ {} │ {:o} │ 1 January 1 │ +│ {} │ {:O} │ 1 January 1 │ +│ {} │ {:p} │ 00 │ +│ {} │ {:P} │ 0 │ +│ {} │ {:s} │ 0001-01-01T00:00:00.0000000 │ +│ {} │ {:S} │ 0001-01-01T00:00:00.000 │ +│ {} │ {:t} │ 00:00:00 │ +│ {} │ {:T} │ 0:00:00 │ +│ {} │ {:u} │ 1-01-01 00:00:00 │ +│ {} │ {:U} │ Monday, 1 January 1 0:00:00 │ +│ {} │ {:v} │ 00:00 │ +│ {} │ {:V} │ 0:00 │ +│ {} │ {:w} │ 00 │ +│ {} │ {:W} │ 0 │ +│ {} │ {:x} │ 00 │ +│ {} │ {:X} │ 0 │ +│ {} │ {:y} │ January 1 │ +│ {} │ {:Y} │ January 1 │ +│ {} │ {:z} │ UTC │ +│ {} │ {:Z} │ UTC │ ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ {123456789123456789} │ {} │ Sat Mar 21 19:15:12 0392 | -│ {123456789123456789} │ {:a} │ PM | -│ {123456789123456789} │ {:b} │ 345 | -│ {123456789123456789} │ {:B} │ 345 | -│ {123456789123456789} │ {:c} │ 0006789 | -│ {123456789123456789} │ {:C} │ 6789 | -│ {123456789123456789} │ {:d} │ 03/21/392 | -│ {123456789123456789} │ {:D} │ 3/21/392 | -│ {123456789123456789} │ {:e} │ 12 | -│ {123456789123456789} │ {:E} │ 12 | -│ {123456789123456789} │ {:f} │ Sat Mar 21 19:15:12 0392 | -│ {123456789123456789} │ {:F} │ Sat Mar 21 19:15:12 0392 | -│ {123456789123456789} │ {:g} │ Sat Mar 21 19:15:12 0392 | -│ {123456789123456789} │ {:G} │ Sat Mar 21 19:15:12 0392 | -│ {123456789123456789} │ {:h} │ Sat | -│ {123456789123456789} │ {:H} │ Saturday | -│ {123456789123456789} │ {:i} │ 21 | -│ {123456789123456789} │ {:I} │ 21 | -│ {123456789123456789} │ {:j} │ Mar | -│ {123456789123456789} │ {:J} │ March | -│ {123456789123456789} │ {:k} │ 03 | -│ {123456789123456789} │ {:K} │ 3 | -│ {123456789123456789} │ {:l} │ 92 | -│ {123456789123456789} │ {:L} │ 0392 | -│ {123456789123456789} │ {:m} │ 392 | -│ {123456789123456789} │ {:M} │ March 21 | -│ {123456789123456789} │ {:n} │ Saturday, 21 March 392 | -│ {123456789123456789} │ {:n} │ Saturday, 21 March 392 19:15:12 | -│ {123456789123456789} │ {:o} │ 21 March 392 | -│ {123456789123456789} │ {:O} │ 21 March 392 | -│ {123456789123456789} │ {:p} │ 15 | -│ {123456789123456789} │ {:P} │ 15 | -│ {123456789123456789} │ {:s} │ 0392-03-21T19:15:12.3456789 | -│ {123456789123456789} │ {:S} │ 0392-03-21T19:15:12.345 | -│ {123456789123456789} │ {:t} │ 19:15:12 | -│ {123456789123456789} │ {:T} │ 19:15:12 | -│ {123456789123456789} │ {:u} │ 392-03-21 19:15:12 | -│ {123456789123456789} │ {:U} │ Saturday, 21 March 392 19:15:12 | -│ {123456789123456789} │ {:v} │ 19:15 | -│ {123456789123456789} │ {:V} │ 19:15 | -│ {123456789123456789} │ {:w} │ 19 | -│ {123456789123456789} │ {:W} │ 19 | -│ {123456789123456789} │ {:x} │ 07 | -│ {123456789123456789} │ {:X} │ 7 | -│ {123456789123456789} │ {:y} │ March 92 | -│ {123456789123456789} │ {:Y} │ March 392 | -│ {123456789123456789} │ {:z} │ UTC | -│ {123456789123456789} │ {:Z} │ UTC | +│ {123456789123456789} │ {} │ Sat Mar 21 19:15:12 0392 │ +│ {123456789123456789} │ {:a} │ PM │ +│ {123456789123456789} │ {:b} │ 345 │ +│ {123456789123456789} │ {:B} │ 345 │ +│ {123456789123456789} │ {:c} │ 0006789 │ +│ {123456789123456789} │ {:C} │ 6789 │ +│ {123456789123456789} │ {:d} │ 03/21/392 │ +│ {123456789123456789} │ {:D} │ 3/21/392 │ +│ {123456789123456789} │ {:e} │ 12 │ +│ {123456789123456789} │ {:E} │ 12 │ +│ {123456789123456789} │ {:f} │ Sat Mar 21 19:15:12 0392 │ +│ {123456789123456789} │ {:F} │ Sat Mar 21 19:15:12 0392 │ +│ {123456789123456789} │ {:g} │ Sat Mar 21 19:15:12 0392 │ +│ {123456789123456789} │ {:G} │ Sat Mar 21 19:15:12 0392 │ +│ {123456789123456789} │ {:h} │ Sat │ +│ {123456789123456789} │ {:H} │ Saturday │ +│ {123456789123456789} │ {:i} │ 21 │ +│ {123456789123456789} │ {:I} │ 21 │ +│ {123456789123456789} │ {:j} │ Mar │ +│ {123456789123456789} │ {:J} │ March │ +│ {123456789123456789} │ {:k} │ 03 │ +│ {123456789123456789} │ {:K} │ 3 │ +│ {123456789123456789} │ {:l} │ 92 │ +│ {123456789123456789} │ {:L} │ 0392 │ +│ {123456789123456789} │ {:m} │ 392 │ +│ {123456789123456789} │ {:M} │ March 21 │ +│ {123456789123456789} │ {:n} │ Saturday, 21 March 392 │ +│ {123456789123456789} │ {:n} │ Saturday, 21 March 392 19:15:12 │ +│ {123456789123456789} │ {:o} │ 21 March 392 │ +│ {123456789123456789} │ {:O} │ 21 March 392 │ +│ {123456789123456789} │ {:p} │ 15 │ +│ {123456789123456789} │ {:P} │ 15 │ +│ {123456789123456789} │ {:s} │ 0392-03-21T19:15:12.3456789 │ +│ {123456789123456789} │ {:S} │ 0392-03-21T19:15:12.345 │ +│ {123456789123456789} │ {:t} │ 19:15:12 │ +│ {123456789123456789} │ {:T} │ 19:15:12 │ +│ {123456789123456789} │ {:u} │ 392-03-21 19:15:12 │ +│ {123456789123456789} │ {:U} │ Saturday, 21 March 392 19:15:12 │ +│ {123456789123456789} │ {:v} │ 19:15 │ +│ {123456789123456789} │ {:V} │ 19:15 │ +│ {123456789123456789} │ {:w} │ 19 │ +│ {123456789123456789} │ {:W} │ 19 │ +│ {123456789123456789} │ {:x} │ 07 │ +│ {123456789123456789} │ {:X} │ 7 │ +│ {123456789123456789} │ {:y} │ March 92 │ +│ {123456789123456789} │ {:Y} │ March 392 │ +│ {123456789123456789} │ {:z} │ UTC │ +│ {123456789123456789} │ {:Z} │ UTC │ ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ {1971, 1, 5} │ {} │ Tue Jan 5 00:00:00 1971 | -│ {1971, 1, 5} │ {:a} │ AM | -│ {1971, 1, 5} │ {:b} │ 000 | -│ {1971, 1, 5} │ {:B} │ 0 | -│ {1971, 1, 5} │ {:c} │ 0000000 | -│ {1971, 1, 5} │ {:C} │ 0 | -│ {1971, 1, 5} │ {:d} │ 01/05/1971 | -│ {1971, 1, 5} │ {:D} │ 1/05/1971 | -│ {1971, 1, 5} │ {:e} │ 00 | -│ {1971, 1, 5} │ {:E} │ 0 | -│ {1971, 1, 5} │ {:f} │ Tue Jan 5 00:00:00 1971 | -│ {1971, 1, 5} │ {:F} │ Tue Jan 5 00:00:00 1971 | -│ {1971, 1, 5} │ {:g} │ Tue Jan 5 00:00:00 1971 | -│ {1971, 1, 5} │ {:G} │ Tue Jan 5 00:00:00 1971 | -│ {1971, 1, 5} │ {:h} │ Tue | -│ {1971, 1, 5} │ {:H} │ Tuesday | -│ {1971, 1, 5} │ {:i} │ 05 | -│ {1971, 1, 5} │ {:I} │ 5 | -│ {1971, 1, 5} │ {:j} │ Jan | -│ {1971, 1, 5} │ {:J} │ January | -│ {1971, 1, 5} │ {:k} │ 01 | -│ {1971, 1, 5} │ {:K} │ 1 | -│ {1971, 1, 5} │ {:l} │ 71 | -│ {1971, 1, 5} │ {:L} │ 1971 | -│ {1971, 1, 5} │ {:m} │ 1971 | -│ {1971, 1, 5} │ {:M} │ January 5 | -│ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 | -│ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 0:00:00 | -│ {1971, 1, 5} │ {:o} │ 5 January 1971 | -│ {1971, 1, 5} │ {:O} │ 5 January 1971 | -│ {1971, 1, 5} │ {:p} │ 00 | -│ {1971, 1, 5} │ {:P} │ 0 | -│ {1971, 1, 5} │ {:s} │ 1971-01-05T00:00:00.0000000 | -│ {1971, 1, 5} │ {:S} │ 1971-01-05T00:00:00.000 | -│ {1971, 1, 5} │ {:t} │ 00:00:00 | -│ {1971, 1, 5} │ {:T} │ 0:00:00 | -│ {1971, 1, 5} │ {:u} │ 1971-01-05 00:00:00 | -│ {1971, 1, 5} │ {:U} │ Tuesday, 5 January 1971 0:00:00 | -│ {1971, 1, 5} │ {:v} │ 00:00 | -│ {1971, 1, 5} │ {:V} │ 0:00 | -│ {1971, 1, 5} │ {:w} │ 00 | -│ {1971, 1, 5} │ {:W} │ 0 | -│ {1971, 1, 5} │ {:x} │ 00 | -│ {1971, 1, 5} │ {:X} │ 0 | -│ {1971, 1, 5} │ {:y} │ January 71 | -│ {1971, 1, 5} │ {:Y} │ January 1971 | -│ {1971, 1, 5} │ {:z} │ UTC | -│ {1971, 1, 5} │ {:Z} │ UTC | +│ {1971, 1, 5} │ {} │ Tue Jan 5 00:00:00 1971 │ +│ {1971, 1, 5} │ {:a} │ AM │ +│ {1971, 1, 5} │ {:b} │ 000 │ +│ {1971, 1, 5} │ {:B} │ 0 │ +│ {1971, 1, 5} │ {:c} │ 0000000 │ +│ {1971, 1, 5} │ {:C} │ 0 │ +│ {1971, 1, 5} │ {:d} │ 01/05/1971 │ +│ {1971, 1, 5} │ {:D} │ 1/05/1971 │ +│ {1971, 1, 5} │ {:e} │ 00 │ +│ {1971, 1, 5} │ {:E} │ 0 │ +│ {1971, 1, 5} │ {:f} │ Tue Jan 5 00:00:00 1971 │ +│ {1971, 1, 5} │ {:F} │ Tue Jan 5 00:00:00 1971 │ +│ {1971, 1, 5} │ {:g} │ Tue Jan 5 00:00:00 1971 │ +│ {1971, 1, 5} │ {:G} │ Tue Jan 5 00:00:00 1971 │ +│ {1971, 1, 5} │ {:h} │ Tue │ +│ {1971, 1, 5} │ {:H} │ Tuesday │ +│ {1971, 1, 5} │ {:i} │ 05 │ +│ {1971, 1, 5} │ {:I} │ 5 │ +│ {1971, 1, 5} │ {:j} │ Jan │ +│ {1971, 1, 5} │ {:J} │ January │ +│ {1971, 1, 5} │ {:k} │ 01 │ +│ {1971, 1, 5} │ {:K} │ 1 │ +│ {1971, 1, 5} │ {:l} │ 71 │ +│ {1971, 1, 5} │ {:L} │ 1971 │ +│ {1971, 1, 5} │ {:m} │ 1971 │ +│ {1971, 1, 5} │ {:M} │ January 5 │ +│ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 │ +│ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 0:00:00 │ +│ {1971, 1, 5} │ {:o} │ 5 January 1971 │ +│ {1971, 1, 5} │ {:O} │ 5 January 1971 │ +│ {1971, 1, 5} │ {:p} │ 00 │ +│ {1971, 1, 5} │ {:P} │ 0 │ +│ {1971, 1, 5} │ {:s} │ 1971-01-05T00:00:00.0000000 │ +│ {1971, 1, 5} │ {:S} │ 1971-01-05T00:00:00.000 │ +│ {1971, 1, 5} │ {:t} │ 00:00:00 │ +│ {1971, 1, 5} │ {:T} │ 0:00:00 │ +│ {1971, 1, 5} │ {:u} │ 1971-01-05 00:00:00 │ +│ {1971, 1, 5} │ {:U} │ Tuesday, 5 January 1971 0:00:00 │ +│ {1971, 1, 5} │ {:v} │ 00:00 │ +│ {1971, 1, 5} │ {:V} │ 0:00 │ +│ {1971, 1, 5} │ {:w} │ 00 │ +│ {1971, 1, 5} │ {:W} │ 0 │ +│ {1971, 1, 5} │ {:x} │ 00 │ +│ {1971, 1, 5} │ {:X} │ 0 │ +│ {1971, 1, 5} │ {:y} │ January 71 │ +│ {1971, 1, 5} │ {:Y} │ January 1971 │ +│ {1971, 1, 5} │ {:z} │ UTC │ +│ {1971, 1, 5} │ {:Z} │ UTC │ ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ {1971, 1, 5, 21, 30, 3} │ {} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:a} │ PM | -│ {1971, 1, 5, 21, 30, 3} │ {:b} │ 000 | -│ {1971, 1, 5, 21, 30, 3} │ {:B} │ 0 | -│ {1971, 1, 5, 21, 30, 3} │ {:c} │ 0000000 | -│ {1971, 1, 5, 21, 30, 3} │ {:C} │ 0 | -│ {1971, 1, 5, 21, 30, 3} │ {:d} │ 01/05/1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:D} │ 1/05/1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:e} │ 03 | -│ {1971, 1, 5, 21, 30, 3} │ {:E} │ 3 | -│ {1971, 1, 5, 21, 30, 3} │ {:f} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:F} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:g} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:G} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:h} │ Tue | -│ {1971, 1, 5, 21, 30, 3} │ {:H} │ Tuesday | -│ {1971, 1, 5, 21, 30, 3} │ {:i} │ 05 | -│ {1971, 1, 5, 21, 30, 3} │ {:I} │ 5 | -│ {1971, 1, 5, 21, 30, 3} │ {:j} │ Jan | -│ {1971, 1, 5, 21, 30, 3} │ {:J} │ January | -│ {1971, 1, 5, 21, 30, 3} │ {:k} │ 01 | -│ {1971, 1, 5, 21, 30, 3} │ {:K} │ 1 | -│ {1971, 1, 5, 21, 30, 3} │ {:l} │ 71 | -│ {1971, 1, 5, 21, 30, 3} │ {:L} │ 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:m} │ 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:M} │ January 5 | -│ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -│ {1971, 1, 5, 21, 30, 3} │ {:o} │ 5 January 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:O} │ 5 January 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:p} │ 30 | -│ {1971, 1, 5, 21, 30, 3} │ {:P} │ 30 | -│ {1971, 1, 5, 21, 30, 3} │ {:s} │ 1971-01-05T21:30:03.0000000 | -│ {1971, 1, 5, 21, 30, 3} │ {:S} │ 1971-01-05T21:30:03.000 | -│ {1971, 1, 5, 21, 30, 3} │ {:t} │ 21:30:03 | -│ {1971, 1, 5, 21, 30, 3} │ {:T} │ 21:30:03 | -│ {1971, 1, 5, 21, 30, 3} │ {:u} │ 1971-01-05 21:30:03 | -│ {1971, 1, 5, 21, 30, 3} │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -│ {1971, 1, 5, 21, 30, 3} │ {:v} │ 21:30 | -│ {1971, 1, 5, 21, 30, 3} │ {:V} │ 21:30 | -│ {1971, 1, 5, 21, 30, 3} │ {:w} │ 21 | -│ {1971, 1, 5, 21, 30, 3} │ {:W} │ 21 | -│ {1971, 1, 5, 21, 30, 3} │ {:x} │ 09 | -│ {1971, 1, 5, 21, 30, 3} │ {:X} │ 9 | -│ {1971, 1, 5, 21, 30, 3} │ {:y} │ January 71 | -│ {1971, 1, 5, 21, 30, 3} │ {:Y} │ January 1971 | -│ {1971, 1, 5, 21, 30, 3} │ {:z} │ UTC | -│ {1971, 1, 5, 21, 30, 3} │ {:Z} │ UTC | +│ {1971, 1, 5, 21, 30, 3} │ {} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:a} │ PM │ +│ {1971, 1, 5, 21, 30, 3} │ {:b} │ 000 │ +│ {1971, 1, 5, 21, 30, 3} │ {:B} │ 0 │ +│ {1971, 1, 5, 21, 30, 3} │ {:c} │ 0000000 │ +│ {1971, 1, 5, 21, 30, 3} │ {:C} │ 0 │ +│ {1971, 1, 5, 21, 30, 3} │ {:d} │ 01/05/1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:D} │ 1/05/1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:e} │ 03 │ +│ {1971, 1, 5, 21, 30, 3} │ {:E} │ 3 │ +│ {1971, 1, 5, 21, 30, 3} │ {:f} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:F} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:g} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:G} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:h} │ Tue │ +│ {1971, 1, 5, 21, 30, 3} │ {:H} │ Tuesday │ +│ {1971, 1, 5, 21, 30, 3} │ {:i} │ 05 │ +│ {1971, 1, 5, 21, 30, 3} │ {:I} │ 5 │ +│ {1971, 1, 5, 21, 30, 3} │ {:j} │ Jan │ +│ {1971, 1, 5, 21, 30, 3} │ {:J} │ January │ +│ {1971, 1, 5, 21, 30, 3} │ {:k} │ 01 │ +│ {1971, 1, 5, 21, 30, 3} │ {:K} │ 1 │ +│ {1971, 1, 5, 21, 30, 3} │ {:l} │ 71 │ +│ {1971, 1, 5, 21, 30, 3} │ {:L} │ 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:m} │ 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:M} │ January 5 │ +│ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3} │ {:o} │ 5 January 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:O} │ 5 January 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:p} │ 30 │ +│ {1971, 1, 5, 21, 30, 3} │ {:P} │ 30 │ +│ {1971, 1, 5, 21, 30, 3} │ {:s} │ 1971-01-05T21:30:03.0000000 │ +│ {1971, 1, 5, 21, 30, 3} │ {:S} │ 1971-01-05T21:30:03.000 │ +│ {1971, 1, 5, 21, 30, 3} │ {:t} │ 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3} │ {:T} │ 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3} │ {:u} │ 1971-01-05 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3} │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3} │ {:v} │ 21:30 │ +│ {1971, 1, 5, 21, 30, 3} │ {:V} │ 21:30 │ +│ {1971, 1, 5, 21, 30, 3} │ {:w} │ 21 │ +│ {1971, 1, 5, 21, 30, 3} │ {:W} │ 21 │ +│ {1971, 1, 5, 21, 30, 3} │ {:x} │ 09 │ +│ {1971, 1, 5, 21, 30, 3} │ {:X} │ 9 │ +│ {1971, 1, 5, 21, 30, 3} │ {:y} │ January 71 │ +│ {1971, 1, 5, 21, 30, 3} │ {:Y} │ January 1971 │ +│ {1971, 1, 5, 21, 30, 3} │ {:z} │ UTC │ +│ {1971, 1, 5, 21, 30, 3} │ {:Z} │ UTC │ ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ {1971, 1, 5, 21, 30, 3, 42} │ {} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:a} │ PM | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:b} │ 042 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:B} │ 42 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:c} │ 0000000 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:C} │ 0 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:d} │ 01/05/1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:D} │ 1/05/1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:e} │ 03 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:E} │ 3 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:f} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:F} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:g} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:G} │ Tue Jan 5 21:30:03 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:h} │ Tue | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:H} │ Tuesday | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:i} │ 05 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:I} │ 5 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:j} │ Jan | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:J} │ January | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:k} │ 01 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:K} │ 1 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:l} │ 71 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:L} │ 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:m} │ 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:M} │ January 5 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:o} │ 5 January 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:O} │ 5 January 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:p} │ 30 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:P} │ 30 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:s} │ 1971-01-05T21:30:03.0420000 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:S} │ 1971-01-05T21:30:03.042 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:t} │ 21:30:03 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:T} │ 21:30:03 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:u} │ 1971-01-05 21:30:03 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:v} │ 21:30 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:V} │ 21:30 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:w} │ 21 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:W} │ 21 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:x} │ 09 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:X} │ 9 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:y} │ January 71 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:Y} │ January 1971 | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:z} │ UTC | -│ {1971, 1, 5, 21, 30, 3, 42} │ {:Z} │ UTC | +│ {1971, 1, 5, 21, 30, 3, 42} │ {} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:a} │ PM │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:b} │ 042 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:B} │ 42 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:c} │ 0000000 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:C} │ 0 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:d} │ 01/05/1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:D} │ 1/05/1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:e} │ 03 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:E} │ 3 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:f} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:F} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:g} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:G} │ Tue Jan 5 21:30:03 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:h} │ Tue │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:H} │ Tuesday │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:i} │ 05 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:I} │ 5 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:j} │ Jan │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:J} │ January │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:k} │ 01 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:K} │ 1 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:l} │ 71 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:L} │ 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:m} │ 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:M} │ January 5 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:o} │ 5 January 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:O} │ 5 January 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:p} │ 30 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:P} │ 30 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:s} │ 1971-01-05T21:30:03.0420000 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:S} │ 1971-01-05T21:30:03.042 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:t} │ 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:T} │ 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:u} │ 1971-01-05 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:v} │ 21:30 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:V} │ 21:30 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:w} │ 21 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:W} │ 21 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:x} │ 09 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:X} │ 9 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:y} │ January 71 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:Y} │ January 1971 │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:z} │ UTC │ +│ {1971, 1, 5, 21, 30, 3, 42} │ {:Z} │ UTC │ ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ now │ {} │ Sun Dec 15 12:39:49 2024 | -│ now │ {:a} │ PM | -│ now │ {:b} │ 769 | -│ now │ {:B} │ 769 | -│ now │ {:c} │ 0009240 | -│ now │ {:C} │ 9240 | -│ now │ {:d} │ 12/15/2024 | -│ now │ {:D} │ 12/15/2024 | -│ now │ {:e} │ 49 | -│ now │ {:E} │ 49 | -│ now │ {:f} │ Sun Dec 15 12:39:49 2024 | -│ now │ {:F} │ Sun Dec 15 12:39:49 2024 | -│ now │ {:g} │ Sun Dec 15 12:39:49 2024 | -│ now │ {:G} │ Sun Dec 15 12:39:49 2024 | -│ now │ {:h} │ Sun | -│ now │ {:H} │ Sunday | -│ now │ {:i} │ 15 | -│ now │ {:I} │ 15 | -│ now │ {:j} │ Dec | -│ now │ {:J} │ December | -│ now │ {:k} │ 12 | -│ now │ {:K} │ 12 | -│ now │ {:l} │ 24 | -│ now │ {:L} │ 2024 | -│ now │ {:m} │ 2024 | -│ now │ {:M} │ December 15 | -│ now │ {:n} │ Sunday, 15 December 2024 | -│ now │ {:n} │ Sunday, 15 December 2024 12:39:49 | -│ now │ {:o} │ 15 December 2024 | -│ now │ {:O} │ 15 December 2024 | -│ now │ {:p} │ 39 | -│ now │ {:P} │ 39 | -│ now │ {:s} │ 2024-12-15T12:39:49.7699240 | -│ now │ {:S} │ 2024-12-15T12:39:49.769 | -│ now │ {:t} │ 12:39:49 | -│ now │ {:T} │ 12:39:49 | -│ now │ {:u} │ 2024-12-15 12:39:49 | -│ now │ {:U} │ Sunday, 15 December 2024 12:39:49 | -│ now │ {:v} │ 12:39 | -│ now │ {:V} │ 12:39 | -│ now │ {:w} │ 12 | -│ now │ {:W} │ 12 | -│ now │ {:x} │ 00 | -│ now │ {:X} │ 0 | -│ now │ {:y} │ December 24 | -│ now │ {:Y} │ December 2024 | -│ now │ {:z} │ | -│ now │ {:Z} │ | +│ now │ {} │ Sun Dec 15 12:39:49 2024 │ +│ now │ {:a} │ PM │ +│ now │ {:b} │ 769 │ +│ now │ {:B} │ 769 │ +│ now │ {:c} │ 0009240 │ +│ now │ {:C} │ 9240 │ +│ now │ {:d} │ 12/15/2024 │ +│ now │ {:D} │ 12/15/2024 │ +│ now │ {:e} │ 49 │ +│ now │ {:E} │ 49 │ +│ now │ {:f} │ Sun Dec 15 12:39:49 2024 │ +│ now │ {:F} │ Sun Dec 15 12:39:49 2024 │ +│ now │ {:g} │ Sun Dec 15 12:39:49 2024 │ +│ now │ {:G} │ Sun Dec 15 12:39:49 2024 │ +│ now │ {:h} │ Sun │ +│ now │ {:H} │ Sunday │ +│ now │ {:i} │ 15 │ +│ now │ {:I} │ 15 │ +│ now │ {:j} │ Dec │ +│ now │ {:J} │ December │ +│ now │ {:k} │ 12 │ +│ now │ {:K} │ 12 │ +│ now │ {:l} │ 24 │ +│ now │ {:L} │ 2024 │ +│ now │ {:m} │ 2024 │ +│ now │ {:M} │ December 15 │ +│ now │ {:n} │ Sunday, 15 December 2024 │ +│ now │ {:n} │ Sunday, 15 December 2024 12:39:49 │ +│ now │ {:o} │ 15 December 2024 │ +│ now │ {:O} │ 15 December 2024 │ +│ now │ {:p} │ 39 │ +│ now │ {:P} │ 39 │ +│ now │ {:s} │ 2024-12-15T12:39:49.7699240 │ +│ now │ {:S} │ 2024-12-15T12:39:49.769 │ +│ now │ {:t} │ 12:39:49 │ +│ now │ {:T} │ 12:39:49 │ +│ now │ {:u} │ 2024-12-15 12:39:49 │ +│ now │ {:U} │ Sunday, 15 December 2024 12:39:49 │ +│ now │ {:v} │ 12:39 │ +│ now │ {:V} │ 12:39 │ +│ now │ {:w} │ 12 │ +│ now │ {:W} │ 12 │ +│ now │ {:x} │ 00 │ +│ now │ {:X} │ 0 │ +│ now │ {:y} │ December 24 │ +│ now │ {:Y} │ December 2024 │ +│ now │ {:z} │ │ +│ now │ {:Z} │ │ ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ utc_now │ {} │ Sun Dec 15 11:39:49 2024 | -│ utc_now │ {:a} │ AM | -│ utc_now │ {:b} │ 772 | -│ utc_now │ {:B} │ 772 | -│ utc_now │ {:c} │ 0003870 | -│ utc_now │ {:C} │ 3870 | -│ utc_now │ {:d} │ 12/15/2024 | -│ utc_now │ {:D} │ 12/15/2024 | -│ utc_now │ {:e} │ 49 | -│ utc_now │ {:E} │ 49 | -│ utc_now │ {:f} │ Sun Dec 15 11:39:49 2024 | -│ utc_now │ {:F} │ Sun Dec 15 11:39:49 2024 | -│ utc_now │ {:g} │ Sun Dec 15 11:39:49 2024 | -│ utc_now │ {:G} │ Sun Dec 15 11:39:49 2024 | -│ utc_now │ {:h} │ Sun | -│ utc_now │ {:H} │ Sunday | -│ utc_now │ {:i} │ 15 | -│ utc_now │ {:I} │ 15 | -│ utc_now │ {:j} │ Dec | -│ utc_now │ {:J} │ December | -│ utc_now │ {:k} │ 12 | -│ utc_now │ {:K} │ 12 | -│ utc_now │ {:l} │ 24 | -│ utc_now │ {:L} │ 2024 | -│ utc_now │ {:m} │ 2024 | -│ utc_now │ {:M} │ December 15 | -│ utc_now │ {:n} │ Sunday, 15 December 2024 | -│ utc_now │ {:n} │ Sunday, 15 December 2024 11:39:49 | -│ utc_now │ {:o} │ 15 December 2024 | -│ utc_now │ {:O} │ 15 December 2024 | -│ utc_now │ {:p} │ 39 | -│ utc_now │ {:P} │ 39 | -│ utc_now │ {:s} │ 2024-12-15T11:39:49.7723870 | -│ utc_now │ {:S} │ 2024-12-15T11:39:49.772 | -│ utc_now │ {:t} │ 11:39:49 | -│ utc_now │ {:T} │ 11:39:49 | -│ utc_now │ {:u} │ 2024-12-15 11:39:49 | -│ utc_now │ {:U} │ Sunday, 15 December 2024 11:39:49 | -│ utc_now │ {:v} │ 11:39 | -│ utc_now │ {:V} │ 11:39 | -│ utc_now │ {:w} │ 11 | -│ utc_now │ {:W} │ 11 | -│ utc_now │ {:x} │ 11 | -│ utc_now │ {:X} │ 11 | -│ utc_now │ {:y} │ December 24 | -│ utc_now │ {:Y} │ December 2024 | -│ utc_now │ {:z} │ UTC | -│ utc_now │ {:Z} │ UTC | +│ utc_now │ {} │ Sun Dec 15 11:39:49 2024 │ +│ utc_now │ {:a} │ AM │ +│ utc_now │ {:b} │ 772 │ +│ utc_now │ {:B} │ 772 │ +│ utc_now │ {:c} │ 0003870 │ +│ utc_now │ {:C} │ 3870 │ +│ utc_now │ {:d} │ 12/15/2024 │ +│ utc_now │ {:D} │ 12/15/2024 │ +│ utc_now │ {:e} │ 49 │ +│ utc_now │ {:E} │ 49 │ +│ utc_now │ {:f} │ Sun Dec 15 11:39:49 2024 │ +│ utc_now │ {:F} │ Sun Dec 15 11:39:49 2024 │ +│ utc_now │ {:g} │ Sun Dec 15 11:39:49 2024 │ +│ utc_now │ {:G} │ Sun Dec 15 11:39:49 2024 │ +│ utc_now │ {:h} │ Sun │ +│ utc_now │ {:H} │ Sunday │ +│ utc_now │ {:i} │ 15 │ +│ utc_now │ {:I} │ 15 │ +│ utc_now │ {:j} │ Dec │ +│ utc_now │ {:J} │ December │ +│ utc_now │ {:k} │ 12 │ +│ utc_now │ {:K} │ 12 │ +│ utc_now │ {:l} │ 24 │ +│ utc_now │ {:L} │ 2024 │ +│ utc_now │ {:m} │ 2024 │ +│ utc_now │ {:M} │ December 15 │ +│ utc_now │ {:n} │ Sunday, 15 December 2024 │ +│ utc_now │ {:n} │ Sunday, 15 December 2024 11:39:49 │ +│ utc_now │ {:o} │ 15 December 2024 │ +│ utc_now │ {:O} │ 15 December 2024 │ +│ utc_now │ {:p} │ 39 │ +│ utc_now │ {:P} │ 39 │ +│ utc_now │ {:s} │ 2024-12-15T11:39:49.7723870 │ +│ utc_now │ {:S} │ 2024-12-15T11:39:49.772 │ +│ utc_now │ {:t} │ 11:39:49 │ +│ utc_now │ {:T} │ 11:39:49 │ +│ utc_now │ {:u} │ 2024-12-15 11:39:49 │ +│ utc_now │ {:U} │ Sunday, 15 December 2024 11:39:49 │ +│ utc_now │ {:v} │ 11:39 │ +│ utc_now │ {:V} │ 11:39 │ +│ utc_now │ {:w} │ 11 │ +│ utc_now │ {:W} │ 11 │ +│ utc_now │ {:x} │ 11 │ +│ utc_now │ {:X} │ 11 │ +│ utc_now │ {:y} │ December 24 │ +│ utc_now │ {:Y} │ December 2024 │ +│ utc_now │ {:z} │ UTC │ +│ utc_now │ {:Z} │ UTC │ └─────────────────────────────┴────────────┴──────────────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_date_time/src/format_date_time.cpp b/examples/xtd.core.examples/format/format_date_time/src/format_date_time.cpp index b781ee315235..855d93bcfdc8 100644 --- a/examples/xtd.core.examples/format/format_date_time/src/format_date_time.cpp +++ b/examples/xtd.core.examples/format/format_date_time/src/format_date_time.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include using namespace xtd; @@ -14,54 +14,54 @@ auto print_date_time(const string& text, const date_time& value, cap c) { << "│ date_time │ format │ representation │" << environment::new_line << "├─────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {} │ " << string::format("{}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:a} │ " << string::format("{:a}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:b} │ " << string::format("{:b}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:B} │ " << string::format("{:B}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:c} │ " << string::format("{:c}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:C} │ " << string::format("{:C}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:d} │ " << string::format("{:d}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:D} │ " << string::format("{:D}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:e} │ " << string::format("{:e}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:E} │ " << string::format("{:E}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:f} │ " << string::format("{:f}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:F} │ " << string::format("{:F}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:g} │ " << string::format("{:g}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:G} │ " << string::format("{:G}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:h} │ " << string::format("{:h}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:H} │ " << string::format("{:H}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:i} │ " << string::format("{:i}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:I} │ " << string::format("{:I}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:j} │ " << string::format("{:j}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:J} │ " << string::format("{:J}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:k} │ " << string::format("{:k}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:K} │ " << string::format("{:K}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:l} │ " << string::format("{:l}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:L} │ " << string::format("{:L}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:m} │ " << string::format("{:m}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:M} │ " << string::format("{:M}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:n} │ " << string::format("{:n}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:n} │ " << string::format("{:N}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:o} │ " << string::format("{:o}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:O} │ " << string::format("{:O}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:p} │ " << string::format("{:p}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:P} │ " << string::format("{:P}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:s} │ " << string::format("{:s}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:S} │ " << string::format("{:S}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:t} │ " << string::format("{:t}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:T} │ " << string::format("{:T}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:u} │ " << string::format("{:u}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:U} │ " << string::format("{:U}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:v} │ " << string::format("{:v}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:V} │ " << string::format("{:V}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:w} │ " << string::format("{:w}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:W} │ " << string::format("{:W}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:x} │ " << string::format("{:x}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:X} │ " << string::format("{:X}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:y} │ " << string::format("{:y}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:Y} │ " << string::format("{:Y}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:z} │ " << string::format("{:z}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(27) << " │ {:Z} │ " << string::format("{:Z}", value).pad_right(40) << " |" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {} │ " << format("{}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:a} │ " << format("{:a}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:b} │ " << format("{:b}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:B} │ " << format("{:B}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:c} │ " << format("{:c}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:C} │ " << format("{:C}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:d} │ " << format("{:d}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:D} │ " << format("{:D}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:e} │ " << format("{:e}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:E} │ " << format("{:E}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:f} │ " << format("{:f}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:F} │ " << format("{:F}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:g} │ " << format("{:g}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:G} │ " << format("{:G}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:h} │ " << format("{:h}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:H} │ " << format("{:H}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:i} │ " << format("{:i}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:I} │ " << format("{:I}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:j} │ " << format("{:j}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:J} │ " << format("{:J}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:k} │ " << format("{:k}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:K} │ " << format("{:K}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:l} │ " << format("{:l}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:L} │ " << format("{:L}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:m} │ " << format("{:m}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:M} │ " << format("{:M}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:n} │ " << format("{:n}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:n} │ " << format("{:N}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:o} │ " << format("{:o}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:O} │ " << format("{:O}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:p} │ " << format("{:p}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:P} │ " << format("{:P}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:s} │ " << format("{:s}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:S} │ " << format("{:S}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:t} │ " << format("{:t}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:T} │ " << format("{:T}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:u} │ " << format("{:u}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:U} │ " << format("{:U}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:v} │ " << format("{:v}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:V} │ " << format("{:V}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:w} │ " << format("{:w}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:W} │ " << format("{:W}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:x} │ " << format("{:x}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:X} │ " << format("{:X}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:y} │ " << format("{:y}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:Y} │ " << format("{:Y}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:z} │ " << format("{:z}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(27) << " │ {:Z} │ " << format("{:Z}", value).pad_right(40) << " │" << environment::new_line; if (c != cap::end) console::out << "├─────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; @@ -84,346 +84,346 @@ auto main() -> int { // ┌─────────────────────────────┬────────────┬──────────────────────────────────────────┐ // │ date_time │ format │ representation │ // ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ {} │ {} │ Mon Jan 1 00:00:00 0001 | -// │ {} │ {:a} │ AM | -// │ {} │ {:b} │ 000 | -// │ {} │ {:B} │ 0 | -// │ {} │ {:c} │ 0000000 | -// │ {} │ {:C} │ 0 | -// │ {} │ {:d} │ 01/01/1 | -// │ {} │ {:D} │ 1/01/1 | -// │ {} │ {:e} │ 00 | -// │ {} │ {:E} │ 0 | -// │ {} │ {:f} │ Mon Jan 1 00:00:00 0001 | -// │ {} │ {:F} │ Mon Jan 1 00:00:00 0001 | -// │ {} │ {:g} │ Mon Jan 1 00:00:00 0001 | -// │ {} │ {:G} │ Mon Jan 1 00:00:00 0001 | -// │ {} │ {:h} │ Mon | -// │ {} │ {:H} │ Monday | -// │ {} │ {:i} │ 01 | -// │ {} │ {:I} │ 1 | -// │ {} │ {:j} │ Jan | -// │ {} │ {:J} │ January | -// │ {} │ {:k} │ 01 | -// │ {} │ {:K} │ 1 | -// │ {} │ {:l} │ 01 | -// │ {} │ {:L} │ 0001 | -// │ {} │ {:m} │ 1 | -// │ {} │ {:M} │ January 1 | -// │ {} │ {:n} │ Monday, 1 January 1 | -// │ {} │ {:n} │ Monday, 1 January 1 0:00:00 | -// │ {} │ {:o} │ 1 January 1 | -// │ {} │ {:O} │ 1 January 1 | -// │ {} │ {:p} │ 00 | -// │ {} │ {:P} │ 0 | -// │ {} │ {:s} │ 0001-01-01T00:00:00.0000000 | -// │ {} │ {:S} │ 0001-01-01T00:00:00.000 | -// │ {} │ {:t} │ 00:00:00 | -// │ {} │ {:T} │ 0:00:00 | -// │ {} │ {:u} │ 1-01-01 00:00:00 | -// │ {} │ {:U} │ Monday, 1 January 1 0:00:00 | -// │ {} │ {:v} │ 00:00 | -// │ {} │ {:V} │ 0:00 | -// │ {} │ {:w} │ 00 | -// │ {} │ {:W} │ 0 | -// │ {} │ {:x} │ 00 | -// │ {} │ {:X} │ 0 | -// │ {} │ {:y} │ January 1 | -// │ {} │ {:Y} │ January 1 | -// │ {} │ {:z} │ UTC | -// │ {} │ {:Z} │ UTC | +// │ {} │ {} │ Mon Jan 1 00:00:00 0001 │ +// │ {} │ {:a} │ AM │ +// │ {} │ {:b} │ 000 │ +// │ {} │ {:B} │ 0 │ +// │ {} │ {:c} │ 0000000 │ +// │ {} │ {:C} │ 0 │ +// │ {} │ {:d} │ 01/01/1 │ +// │ {} │ {:D} │ 1/01/1 │ +// │ {} │ {:e} │ 00 │ +// │ {} │ {:E} │ 0 │ +// │ {} │ {:f} │ Mon Jan 1 00:00:00 0001 │ +// │ {} │ {:F} │ Mon Jan 1 00:00:00 0001 │ +// │ {} │ {:g} │ Mon Jan 1 00:00:00 0001 │ +// │ {} │ {:G} │ Mon Jan 1 00:00:00 0001 │ +// │ {} │ {:h} │ Mon │ +// │ {} │ {:H} │ Monday │ +// │ {} │ {:i} │ 01 │ +// │ {} │ {:I} │ 1 │ +// │ {} │ {:j} │ Jan │ +// │ {} │ {:J} │ January │ +// │ {} │ {:k} │ 01 │ +// │ {} │ {:K} │ 1 │ +// │ {} │ {:l} │ 01 │ +// │ {} │ {:L} │ 0001 │ +// │ {} │ {:m} │ 1 │ +// │ {} │ {:M} │ January 1 │ +// │ {} │ {:n} │ Monday, 1 January 1 │ +// │ {} │ {:n} │ Monday, 1 January 1 0:00:00 │ +// │ {} │ {:o} │ 1 January 1 │ +// │ {} │ {:O} │ 1 January 1 │ +// │ {} │ {:p} │ 00 │ +// │ {} │ {:P} │ 0 │ +// │ {} │ {:s} │ 0001-01-01T00:00:00.0000000 │ +// │ {} │ {:S} │ 0001-01-01T00:00:00.000 │ +// │ {} │ {:t} │ 00:00:00 │ +// │ {} │ {:T} │ 0:00:00 │ +// │ {} │ {:u} │ 1-01-01 00:00:00 │ +// │ {} │ {:U} │ Monday, 1 January 1 0:00:00 │ +// │ {} │ {:v} │ 00:00 │ +// │ {} │ {:V} │ 0:00 │ +// │ {} │ {:w} │ 00 │ +// │ {} │ {:W} │ 0 │ +// │ {} │ {:x} │ 00 │ +// │ {} │ {:X} │ 0 │ +// │ {} │ {:y} │ January 1 │ +// │ {} │ {:Y} │ January 1 │ +// │ {} │ {:z} │ UTC │ +// │ {} │ {:Z} │ UTC │ // ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ {123456789123456789} │ {} │ Sat Mar 21 19:15:12 0392 | -// │ {123456789123456789} │ {:a} │ PM | -// │ {123456789123456789} │ {:b} │ 345 | -// │ {123456789123456789} │ {:B} │ 345 | -// │ {123456789123456789} │ {:c} │ 0006789 | -// │ {123456789123456789} │ {:C} │ 6789 | -// │ {123456789123456789} │ {:d} │ 03/21/392 | -// │ {123456789123456789} │ {:D} │ 3/21/392 | -// │ {123456789123456789} │ {:e} │ 12 | -// │ {123456789123456789} │ {:E} │ 12 | -// │ {123456789123456789} │ {:f} │ Sat Mar 21 19:15:12 0392 | -// │ {123456789123456789} │ {:F} │ Sat Mar 21 19:15:12 0392 | -// │ {123456789123456789} │ {:g} │ Sat Mar 21 19:15:12 0392 | -// │ {123456789123456789} │ {:G} │ Sat Mar 21 19:15:12 0392 | -// │ {123456789123456789} │ {:h} │ Sat | -// │ {123456789123456789} │ {:H} │ Saturday | -// │ {123456789123456789} │ {:i} │ 21 | -// │ {123456789123456789} │ {:I} │ 21 | -// │ {123456789123456789} │ {:j} │ Mar | -// │ {123456789123456789} │ {:J} │ March | -// │ {123456789123456789} │ {:k} │ 03 | -// │ {123456789123456789} │ {:K} │ 3 | -// │ {123456789123456789} │ {:l} │ 92 | -// │ {123456789123456789} │ {:L} │ 0392 | -// │ {123456789123456789} │ {:m} │ 392 | -// │ {123456789123456789} │ {:M} │ March 21 | -// │ {123456789123456789} │ {:n} │ Saturday, 21 March 392 | -// │ {123456789123456789} │ {:n} │ Saturday, 21 March 392 19:15:12 | -// │ {123456789123456789} │ {:o} │ 21 March 392 | -// │ {123456789123456789} │ {:O} │ 21 March 392 | -// │ {123456789123456789} │ {:p} │ 15 | -// │ {123456789123456789} │ {:P} │ 15 | -// │ {123456789123456789} │ {:s} │ 0392-03-21T19:15:12.3456789 | -// │ {123456789123456789} │ {:S} │ 0392-03-21T19:15:12.345 | -// │ {123456789123456789} │ {:t} │ 19:15:12 | -// │ {123456789123456789} │ {:T} │ 19:15:12 | -// │ {123456789123456789} │ {:u} │ 392-03-21 19:15:12 | -// │ {123456789123456789} │ {:U} │ Saturday, 21 March 392 19:15:12 | -// │ {123456789123456789} │ {:v} │ 19:15 | -// │ {123456789123456789} │ {:V} │ 19:15 | -// │ {123456789123456789} │ {:w} │ 19 | -// │ {123456789123456789} │ {:W} │ 19 | -// │ {123456789123456789} │ {:x} │ 07 | -// │ {123456789123456789} │ {:X} │ 7 | -// │ {123456789123456789} │ {:y} │ March 92 | -// │ {123456789123456789} │ {:Y} │ March 392 | -// │ {123456789123456789} │ {:z} │ UTC | -// │ {123456789123456789} │ {:Z} │ UTC | +// │ {123456789123456789} │ {} │ Sat Mar 21 19:15:12 0392 │ +// │ {123456789123456789} │ {:a} │ PM │ +// │ {123456789123456789} │ {:b} │ 345 │ +// │ {123456789123456789} │ {:B} │ 345 │ +// │ {123456789123456789} │ {:c} │ 0006789 │ +// │ {123456789123456789} │ {:C} │ 6789 │ +// │ {123456789123456789} │ {:d} │ 03/21/392 │ +// │ {123456789123456789} │ {:D} │ 3/21/392 │ +// │ {123456789123456789} │ {:e} │ 12 │ +// │ {123456789123456789} │ {:E} │ 12 │ +// │ {123456789123456789} │ {:f} │ Sat Mar 21 19:15:12 0392 │ +// │ {123456789123456789} │ {:F} │ Sat Mar 21 19:15:12 0392 │ +// │ {123456789123456789} │ {:g} │ Sat Mar 21 19:15:12 0392 │ +// │ {123456789123456789} │ {:G} │ Sat Mar 21 19:15:12 0392 │ +// │ {123456789123456789} │ {:h} │ Sat │ +// │ {123456789123456789} │ {:H} │ Saturday │ +// │ {123456789123456789} │ {:i} │ 21 │ +// │ {123456789123456789} │ {:I} │ 21 │ +// │ {123456789123456789} │ {:j} │ Mar │ +// │ {123456789123456789} │ {:J} │ March │ +// │ {123456789123456789} │ {:k} │ 03 │ +// │ {123456789123456789} │ {:K} │ 3 │ +// │ {123456789123456789} │ {:l} │ 92 │ +// │ {123456789123456789} │ {:L} │ 0392 │ +// │ {123456789123456789} │ {:m} │ 392 │ +// │ {123456789123456789} │ {:M} │ March 21 │ +// │ {123456789123456789} │ {:n} │ Saturday, 21 March 392 │ +// │ {123456789123456789} │ {:n} │ Saturday, 21 March 392 19:15:12 │ +// │ {123456789123456789} │ {:o} │ 21 March 392 │ +// │ {123456789123456789} │ {:O} │ 21 March 392 │ +// │ {123456789123456789} │ {:p} │ 15 │ +// │ {123456789123456789} │ {:P} │ 15 │ +// │ {123456789123456789} │ {:s} │ 0392-03-21T19:15:12.3456789 │ +// │ {123456789123456789} │ {:S} │ 0392-03-21T19:15:12.345 │ +// │ {123456789123456789} │ {:t} │ 19:15:12 │ +// │ {123456789123456789} │ {:T} │ 19:15:12 │ +// │ {123456789123456789} │ {:u} │ 392-03-21 19:15:12 │ +// │ {123456789123456789} │ {:U} │ Saturday, 21 March 392 19:15:12 │ +// │ {123456789123456789} │ {:v} │ 19:15 │ +// │ {123456789123456789} │ {:V} │ 19:15 │ +// │ {123456789123456789} │ {:w} │ 19 │ +// │ {123456789123456789} │ {:W} │ 19 │ +// │ {123456789123456789} │ {:x} │ 07 │ +// │ {123456789123456789} │ {:X} │ 7 │ +// │ {123456789123456789} │ {:y} │ March 92 │ +// │ {123456789123456789} │ {:Y} │ March 392 │ +// │ {123456789123456789} │ {:z} │ UTC │ +// │ {123456789123456789} │ {:Z} │ UTC │ // ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ {1971, 1, 5} │ {} │ Tue Jan 5 00:00:00 1971 | -// │ {1971, 1, 5} │ {:a} │ AM | -// │ {1971, 1, 5} │ {:b} │ 000 | -// │ {1971, 1, 5} │ {:B} │ 0 | -// │ {1971, 1, 5} │ {:c} │ 0000000 | -// │ {1971, 1, 5} │ {:C} │ 0 | -// │ {1971, 1, 5} │ {:d} │ 01/05/1971 | -// │ {1971, 1, 5} │ {:D} │ 1/05/1971 | -// │ {1971, 1, 5} │ {:e} │ 00 | -// │ {1971, 1, 5} │ {:E} │ 0 | -// │ {1971, 1, 5} │ {:f} │ Tue Jan 5 00:00:00 1971 | -// │ {1971, 1, 5} │ {:F} │ Tue Jan 5 00:00:00 1971 | -// │ {1971, 1, 5} │ {:g} │ Tue Jan 5 00:00:00 1971 | -// │ {1971, 1, 5} │ {:G} │ Tue Jan 5 00:00:00 1971 | -// │ {1971, 1, 5} │ {:h} │ Tue | -// │ {1971, 1, 5} │ {:H} │ Tuesday | -// │ {1971, 1, 5} │ {:i} │ 05 | -// │ {1971, 1, 5} │ {:I} │ 5 | -// │ {1971, 1, 5} │ {:j} │ Jan | -// │ {1971, 1, 5} │ {:J} │ January | -// │ {1971, 1, 5} │ {:k} │ 01 | -// │ {1971, 1, 5} │ {:K} │ 1 | -// │ {1971, 1, 5} │ {:l} │ 71 | -// │ {1971, 1, 5} │ {:L} │ 1971 | -// │ {1971, 1, 5} │ {:m} │ 1971 | -// │ {1971, 1, 5} │ {:M} │ January 5 | -// │ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 | -// │ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 0:00:00 | -// │ {1971, 1, 5} │ {:o} │ 5 January 1971 | -// │ {1971, 1, 5} │ {:O} │ 5 January 1971 | -// │ {1971, 1, 5} │ {:p} │ 00 | -// │ {1971, 1, 5} │ {:P} │ 0 | -// │ {1971, 1, 5} │ {:s} │ 1971-01-05T00:00:00.0000000 | -// │ {1971, 1, 5} │ {:S} │ 1971-01-05T00:00:00.000 | -// │ {1971, 1, 5} │ {:t} │ 00:00:00 | -// │ {1971, 1, 5} │ {:T} │ 0:00:00 | -// │ {1971, 1, 5} │ {:u} │ 1971-01-05 00:00:00 | -// │ {1971, 1, 5} │ {:U} │ Tuesday, 5 January 1971 0:00:00 | -// │ {1971, 1, 5} │ {:v} │ 00:00 | -// │ {1971, 1, 5} │ {:V} │ 0:00 | -// │ {1971, 1, 5} │ {:w} │ 00 | -// │ {1971, 1, 5} │ {:W} │ 0 | -// │ {1971, 1, 5} │ {:x} │ 00 | -// │ {1971, 1, 5} │ {:X} │ 0 | -// │ {1971, 1, 5} │ {:y} │ January 71 | -// │ {1971, 1, 5} │ {:Y} │ January 1971 | -// │ {1971, 1, 5} │ {:z} │ UTC | -// │ {1971, 1, 5} │ {:Z} │ UTC | +// │ {1971, 1, 5} │ {} │ Tue Jan 5 00:00:00 1971 │ +// │ {1971, 1, 5} │ {:a} │ AM │ +// │ {1971, 1, 5} │ {:b} │ 000 │ +// │ {1971, 1, 5} │ {:B} │ 0 │ +// │ {1971, 1, 5} │ {:c} │ 0000000 │ +// │ {1971, 1, 5} │ {:C} │ 0 │ +// │ {1971, 1, 5} │ {:d} │ 01/05/1971 │ +// │ {1971, 1, 5} │ {:D} │ 1/05/1971 │ +// │ {1971, 1, 5} │ {:e} │ 00 │ +// │ {1971, 1, 5} │ {:E} │ 0 │ +// │ {1971, 1, 5} │ {:f} │ Tue Jan 5 00:00:00 1971 │ +// │ {1971, 1, 5} │ {:F} │ Tue Jan 5 00:00:00 1971 │ +// │ {1971, 1, 5} │ {:g} │ Tue Jan 5 00:00:00 1971 │ +// │ {1971, 1, 5} │ {:G} │ Tue Jan 5 00:00:00 1971 │ +// │ {1971, 1, 5} │ {:h} │ Tue │ +// │ {1971, 1, 5} │ {:H} │ Tuesday │ +// │ {1971, 1, 5} │ {:i} │ 05 │ +// │ {1971, 1, 5} │ {:I} │ 5 │ +// │ {1971, 1, 5} │ {:j} │ Jan │ +// │ {1971, 1, 5} │ {:J} │ January │ +// │ {1971, 1, 5} │ {:k} │ 01 │ +// │ {1971, 1, 5} │ {:K} │ 1 │ +// │ {1971, 1, 5} │ {:l} │ 71 │ +// │ {1971, 1, 5} │ {:L} │ 1971 │ +// │ {1971, 1, 5} │ {:m} │ 1971 │ +// │ {1971, 1, 5} │ {:M} │ January 5 │ +// │ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 │ +// │ {1971, 1, 5} │ {:n} │ Tuesday, 5 January 1971 0:00:00 │ +// │ {1971, 1, 5} │ {:o} │ 5 January 1971 │ +// │ {1971, 1, 5} │ {:O} │ 5 January 1971 │ +// │ {1971, 1, 5} │ {:p} │ 00 │ +// │ {1971, 1, 5} │ {:P} │ 0 │ +// │ {1971, 1, 5} │ {:s} │ 1971-01-05T00:00:00.0000000 │ +// │ {1971, 1, 5} │ {:S} │ 1971-01-05T00:00:00.000 │ +// │ {1971, 1, 5} │ {:t} │ 00:00:00 │ +// │ {1971, 1, 5} │ {:T} │ 0:00:00 │ +// │ {1971, 1, 5} │ {:u} │ 1971-01-05 00:00:00 │ +// │ {1971, 1, 5} │ {:U} │ Tuesday, 5 January 1971 0:00:00 │ +// │ {1971, 1, 5} │ {:v} │ 00:00 │ +// │ {1971, 1, 5} │ {:V} │ 0:00 │ +// │ {1971, 1, 5} │ {:w} │ 00 │ +// │ {1971, 1, 5} │ {:W} │ 0 │ +// │ {1971, 1, 5} │ {:x} │ 00 │ +// │ {1971, 1, 5} │ {:X} │ 0 │ +// │ {1971, 1, 5} │ {:y} │ January 71 │ +// │ {1971, 1, 5} │ {:Y} │ January 1971 │ +// │ {1971, 1, 5} │ {:z} │ UTC │ +// │ {1971, 1, 5} │ {:Z} │ UTC │ // ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ {1971, 1, 5, 21, 30, 3} │ {} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:a} │ PM | -// │ {1971, 1, 5, 21, 30, 3} │ {:b} │ 000 | -// │ {1971, 1, 5, 21, 30, 3} │ {:B} │ 0 | -// │ {1971, 1, 5, 21, 30, 3} │ {:c} │ 0000000 | -// │ {1971, 1, 5, 21, 30, 3} │ {:C} │ 0 | -// │ {1971, 1, 5, 21, 30, 3} │ {:d} │ 01/05/1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:D} │ 1/05/1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:e} │ 03 | -// │ {1971, 1, 5, 21, 30, 3} │ {:E} │ 3 | -// │ {1971, 1, 5, 21, 30, 3} │ {:f} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:F} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:g} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:G} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:h} │ Tue | -// │ {1971, 1, 5, 21, 30, 3} │ {:H} │ Tuesday | -// │ {1971, 1, 5, 21, 30, 3} │ {:i} │ 05 | -// │ {1971, 1, 5, 21, 30, 3} │ {:I} │ 5 | -// │ {1971, 1, 5, 21, 30, 3} │ {:j} │ Jan | -// │ {1971, 1, 5, 21, 30, 3} │ {:J} │ January | -// │ {1971, 1, 5, 21, 30, 3} │ {:k} │ 01 | -// │ {1971, 1, 5, 21, 30, 3} │ {:K} │ 1 | -// │ {1971, 1, 5, 21, 30, 3} │ {:l} │ 71 | -// │ {1971, 1, 5, 21, 30, 3} │ {:L} │ 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:m} │ 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:M} │ January 5 | -// │ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3} │ {:o} │ 5 January 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:O} │ 5 January 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:p} │ 30 | -// │ {1971, 1, 5, 21, 30, 3} │ {:P} │ 30 | -// │ {1971, 1, 5, 21, 30, 3} │ {:s} │ 1971-01-05T21:30:03.0000000 | -// │ {1971, 1, 5, 21, 30, 3} │ {:S} │ 1971-01-05T21:30:03.000 | -// │ {1971, 1, 5, 21, 30, 3} │ {:t} │ 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3} │ {:T} │ 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3} │ {:u} │ 1971-01-05 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3} │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3} │ {:v} │ 21:30 | -// │ {1971, 1, 5, 21, 30, 3} │ {:V} │ 21:30 | -// │ {1971, 1, 5, 21, 30, 3} │ {:w} │ 21 | -// │ {1971, 1, 5, 21, 30, 3} │ {:W} │ 21 | -// │ {1971, 1, 5, 21, 30, 3} │ {:x} │ 09 | -// │ {1971, 1, 5, 21, 30, 3} │ {:X} │ 9 | -// │ {1971, 1, 5, 21, 30, 3} │ {:y} │ January 71 | -// │ {1971, 1, 5, 21, 30, 3} │ {:Y} │ January 1971 | -// │ {1971, 1, 5, 21, 30, 3} │ {:z} │ UTC | -// │ {1971, 1, 5, 21, 30, 3} │ {:Z} │ UTC | +// │ {1971, 1, 5, 21, 30, 3} │ {} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:a} │ PM │ +// │ {1971, 1, 5, 21, 30, 3} │ {:b} │ 000 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:B} │ 0 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:c} │ 0000000 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:C} │ 0 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:d} │ 01/05/1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:D} │ 1/05/1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:e} │ 03 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:E} │ 3 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:f} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:F} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:g} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:G} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:h} │ Tue │ +// │ {1971, 1, 5, 21, 30, 3} │ {:H} │ Tuesday │ +// │ {1971, 1, 5, 21, 30, 3} │ {:i} │ 05 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:I} │ 5 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:j} │ Jan │ +// │ {1971, 1, 5, 21, 30, 3} │ {:J} │ January │ +// │ {1971, 1, 5, 21, 30, 3} │ {:k} │ 01 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:K} │ 1 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:l} │ 71 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:L} │ 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:m} │ 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:M} │ January 5 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:o} │ 5 January 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:O} │ 5 January 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:p} │ 30 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:P} │ 30 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:s} │ 1971-01-05T21:30:03.0000000 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:S} │ 1971-01-05T21:30:03.000 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:t} │ 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:T} │ 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:u} │ 1971-01-05 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:v} │ 21:30 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:V} │ 21:30 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:w} │ 21 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:W} │ 21 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:x} │ 09 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:X} │ 9 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:y} │ January 71 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:Y} │ January 1971 │ +// │ {1971, 1, 5, 21, 30, 3} │ {:z} │ UTC │ +// │ {1971, 1, 5, 21, 30, 3} │ {:Z} │ UTC │ // ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ {1971, 1, 5, 21, 30, 3, 42} │ {} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:a} │ PM | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:b} │ 042 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:B} │ 42 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:c} │ 0000000 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:C} │ 0 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:d} │ 01/05/1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:D} │ 1/05/1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:e} │ 03 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:E} │ 3 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:f} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:F} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:g} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:G} │ Tue Jan 5 21:30:03 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:h} │ Tue | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:H} │ Tuesday | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:i} │ 05 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:I} │ 5 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:j} │ Jan | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:J} │ January | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:k} │ 01 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:K} │ 1 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:l} │ 71 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:L} │ 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:m} │ 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:M} │ January 5 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:o} │ 5 January 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:O} │ 5 January 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:p} │ 30 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:P} │ 30 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:s} │ 1971-01-05T21:30:03.0420000 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:S} │ 1971-01-05T21:30:03.042 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:t} │ 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:T} │ 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:u} │ 1971-01-05 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:v} │ 21:30 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:V} │ 21:30 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:w} │ 21 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:W} │ 21 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:x} │ 09 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:X} │ 9 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:y} │ January 71 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:Y} │ January 1971 | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:z} │ UTC | -// │ {1971, 1, 5, 21, 30, 3, 42} │ {:Z} │ UTC | +// │ {1971, 1, 5, 21, 30, 3, 42} │ {} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:a} │ PM │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:b} │ 042 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:B} │ 42 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:c} │ 0000000 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:C} │ 0 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:d} │ 01/05/1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:D} │ 1/05/1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:e} │ 03 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:E} │ 3 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:f} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:F} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:g} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:G} │ Tue Jan 5 21:30:03 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:h} │ Tue │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:H} │ Tuesday │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:i} │ 05 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:I} │ 5 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:j} │ Jan │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:J} │ January │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:k} │ 01 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:K} │ 1 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:l} │ 71 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:L} │ 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:m} │ 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:M} │ January 5 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:o} │ 5 January 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:O} │ 5 January 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:p} │ 30 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:P} │ 30 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:s} │ 1971-01-05T21:30:03.0420000 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:S} │ 1971-01-05T21:30:03.042 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:t} │ 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:T} │ 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:u} │ 1971-01-05 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:v} │ 21:30 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:V} │ 21:30 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:w} │ 21 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:W} │ 21 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:x} │ 09 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:X} │ 9 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:y} │ January 71 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:Y} │ January 1971 │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:z} │ UTC │ +// │ {1971, 1, 5, 21, 30, 3, 42} │ {:Z} │ UTC │ // ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ now │ {} │ Sun Dec 15 12:39:49 2024 | -// │ now │ {:a} │ PM | -// │ now │ {:b} │ 769 | -// │ now │ {:B} │ 769 | -// │ now │ {:c} │ 0009240 | -// │ now │ {:C} │ 9240 | -// │ now │ {:d} │ 12/15/2024 | -// │ now │ {:D} │ 12/15/2024 | -// │ now │ {:e} │ 49 | -// │ now │ {:E} │ 49 | -// │ now │ {:f} │ Sun Dec 15 12:39:49 2024 | -// │ now │ {:F} │ Sun Dec 15 12:39:49 2024 | -// │ now │ {:g} │ Sun Dec 15 12:39:49 2024 | -// │ now │ {:G} │ Sun Dec 15 12:39:49 2024 | -// │ now │ {:h} │ Sun | -// │ now │ {:H} │ Sunday | -// │ now │ {:i} │ 15 | -// │ now │ {:I} │ 15 | -// │ now │ {:j} │ Dec | -// │ now │ {:J} │ December | -// │ now │ {:k} │ 12 | -// │ now │ {:K} │ 12 | -// │ now │ {:l} │ 24 | -// │ now │ {:L} │ 2024 | -// │ now │ {:m} │ 2024 | -// │ now │ {:M} │ December 15 | -// │ now │ {:n} │ Sunday, 15 December 2024 | -// │ now │ {:n} │ Sunday, 15 December 2024 12:39:49 | -// │ now │ {:o} │ 15 December 2024 | -// │ now │ {:O} │ 15 December 2024 | -// │ now │ {:p} │ 39 | -// │ now │ {:P} │ 39 | -// │ now │ {:s} │ 2024-12-15T12:39:49.7699240 | -// │ now │ {:S} │ 2024-12-15T12:39:49.769 | -// │ now │ {:t} │ 12:39:49 | -// │ now │ {:T} │ 12:39:49 | -// │ now │ {:u} │ 2024-12-15 12:39:49 | -// │ now │ {:U} │ Sunday, 15 December 2024 12:39:49 | -// │ now │ {:v} │ 12:39 | -// │ now │ {:V} │ 12:39 | -// │ now │ {:w} │ 12 | -// │ now │ {:W} │ 12 | -// │ now │ {:x} │ 00 | -// │ now │ {:X} │ 0 | -// │ now │ {:y} │ December 24 | -// │ now │ {:Y} │ December 2024 | -// │ now │ {:z} │ | -// │ now │ {:Z} │ | +// │ now │ {} │ Sun Dec 15 12:39:49 2024 │ +// │ now │ {:a} │ PM │ +// │ now │ {:b} │ 769 │ +// │ now │ {:B} │ 769 │ +// │ now │ {:c} │ 0009240 │ +// │ now │ {:C} │ 9240 │ +// │ now │ {:d} │ 12/15/2024 │ +// │ now │ {:D} │ 12/15/2024 │ +// │ now │ {:e} │ 49 │ +// │ now │ {:E} │ 49 │ +// │ now │ {:f} │ Sun Dec 15 12:39:49 2024 │ +// │ now │ {:F} │ Sun Dec 15 12:39:49 2024 │ +// │ now │ {:g} │ Sun Dec 15 12:39:49 2024 │ +// │ now │ {:G} │ Sun Dec 15 12:39:49 2024 │ +// │ now │ {:h} │ Sun │ +// │ now │ {:H} │ Sunday │ +// │ now │ {:i} │ 15 │ +// │ now │ {:I} │ 15 │ +// │ now │ {:j} │ Dec │ +// │ now │ {:J} │ December │ +// │ now │ {:k} │ 12 │ +// │ now │ {:K} │ 12 │ +// │ now │ {:l} │ 24 │ +// │ now │ {:L} │ 2024 │ +// │ now │ {:m} │ 2024 │ +// │ now │ {:M} │ December 15 │ +// │ now │ {:n} │ Sunday, 15 December 2024 │ +// │ now │ {:n} │ Sunday, 15 December 2024 12:39:49 │ +// │ now │ {:o} │ 15 December 2024 │ +// │ now │ {:O} │ 15 December 2024 │ +// │ now │ {:p} │ 39 │ +// │ now │ {:P} │ 39 │ +// │ now │ {:s} │ 2024-12-15T12:39:49.7699240 │ +// │ now │ {:S} │ 2024-12-15T12:39:49.769 │ +// │ now │ {:t} │ 12:39:49 │ +// │ now │ {:T} │ 12:39:49 │ +// │ now │ {:u} │ 2024-12-15 12:39:49 │ +// │ now │ {:U} │ Sunday, 15 December 2024 12:39:49 │ +// │ now │ {:v} │ 12:39 │ +// │ now │ {:V} │ 12:39 │ +// │ now │ {:w} │ 12 │ +// │ now │ {:W} │ 12 │ +// │ now │ {:x} │ 00 │ +// │ now │ {:X} │ 0 │ +// │ now │ {:y} │ December 24 │ +// │ now │ {:Y} │ December 2024 │ +// │ now │ {:z} │ │ +// │ now │ {:Z} │ │ // ├─────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ utc_now │ {} │ Sun Dec 15 11:39:49 2024 | -// │ utc_now │ {:a} │ AM | -// │ utc_now │ {:b} │ 772 | -// │ utc_now │ {:B} │ 772 | -// │ utc_now │ {:c} │ 0003870 | -// │ utc_now │ {:C} │ 3870 | -// │ utc_now │ {:d} │ 12/15/2024 | -// │ utc_now │ {:D} │ 12/15/2024 | -// │ utc_now │ {:e} │ 49 | -// │ utc_now │ {:E} │ 49 | -// │ utc_now │ {:f} │ Sun Dec 15 11:39:49 2024 | -// │ utc_now │ {:F} │ Sun Dec 15 11:39:49 2024 | -// │ utc_now │ {:g} │ Sun Dec 15 11:39:49 2024 | -// │ utc_now │ {:G} │ Sun Dec 15 11:39:49 2024 | -// │ utc_now │ {:h} │ Sun | -// │ utc_now │ {:H} │ Sunday | -// │ utc_now │ {:i} │ 15 | -// │ utc_now │ {:I} │ 15 | -// │ utc_now │ {:j} │ Dec | -// │ utc_now │ {:J} │ December | -// │ utc_now │ {:k} │ 12 | -// │ utc_now │ {:K} │ 12 | -// │ utc_now │ {:l} │ 24 | -// │ utc_now │ {:L} │ 2024 | -// │ utc_now │ {:m} │ 2024 | -// │ utc_now │ {:M} │ December 15 | -// │ utc_now │ {:n} │ Sunday, 15 December 2024 | -// │ utc_now │ {:n} │ Sunday, 15 December 2024 11:39:49 | -// │ utc_now │ {:o} │ 15 December 2024 | -// │ utc_now │ {:O} │ 15 December 2024 | -// │ utc_now │ {:p} │ 39 | -// │ utc_now │ {:P} │ 39 | -// │ utc_now │ {:s} │ 2024-12-15T11:39:49.7723870 | -// │ utc_now │ {:S} │ 2024-12-15T11:39:49.772 | -// │ utc_now │ {:t} │ 11:39:49 | -// │ utc_now │ {:T} │ 11:39:49 | -// │ utc_now │ {:u} │ 2024-12-15 11:39:49 | -// │ utc_now │ {:U} │ Sunday, 15 December 2024 11:39:49 | -// │ utc_now │ {:v} │ 11:39 | -// │ utc_now │ {:V} │ 11:39 | -// │ utc_now │ {:w} │ 11 | -// │ utc_now │ {:W} │ 11 | -// │ utc_now │ {:x} │ 11 | -// │ utc_now │ {:X} │ 11 | -// │ utc_now │ {:y} │ December 24 | -// │ utc_now │ {:Y} │ December 2024 | -// │ utc_now │ {:z} │ UTC | -// │ utc_now │ {:Z} │ UTC | +// │ utc_now │ {} │ Sun Dec 15 11:39:49 2024 │ +// │ utc_now │ {:a} │ AM │ +// │ utc_now │ {:b} │ 772 │ +// │ utc_now │ {:B} │ 772 │ +// │ utc_now │ {:c} │ 0003870 │ +// │ utc_now │ {:C} │ 3870 │ +// │ utc_now │ {:d} │ 12/15/2024 │ +// │ utc_now │ {:D} │ 12/15/2024 │ +// │ utc_now │ {:e} │ 49 │ +// │ utc_now │ {:E} │ 49 │ +// │ utc_now │ {:f} │ Sun Dec 15 11:39:49 2024 │ +// │ utc_now │ {:F} │ Sun Dec 15 11:39:49 2024 │ +// │ utc_now │ {:g} │ Sun Dec 15 11:39:49 2024 │ +// │ utc_now │ {:G} │ Sun Dec 15 11:39:49 2024 │ +// │ utc_now │ {:h} │ Sun │ +// │ utc_now │ {:H} │ Sunday │ +// │ utc_now │ {:i} │ 15 │ +// │ utc_now │ {:I} │ 15 │ +// │ utc_now │ {:j} │ Dec │ +// │ utc_now │ {:J} │ December │ +// │ utc_now │ {:k} │ 12 │ +// │ utc_now │ {:K} │ 12 │ +// │ utc_now │ {:l} │ 24 │ +// │ utc_now │ {:L} │ 2024 │ +// │ utc_now │ {:m} │ 2024 │ +// │ utc_now │ {:M} │ December 15 │ +// │ utc_now │ {:n} │ Sunday, 15 December 2024 │ +// │ utc_now │ {:n} │ Sunday, 15 December 2024 11:39:49 │ +// │ utc_now │ {:o} │ 15 December 2024 │ +// │ utc_now │ {:O} │ 15 December 2024 │ +// │ utc_now │ {:p} │ 39 │ +// │ utc_now │ {:P} │ 39 │ +// │ utc_now │ {:s} │ 2024-12-15T11:39:49.7723870 │ +// │ utc_now │ {:S} │ 2024-12-15T11:39:49.772 │ +// │ utc_now │ {:t} │ 11:39:49 │ +// │ utc_now │ {:T} │ 11:39:49 │ +// │ utc_now │ {:u} │ 2024-12-15 11:39:49 │ +// │ utc_now │ {:U} │ Sunday, 15 December 2024 11:39:49 │ +// │ utc_now │ {:v} │ 11:39 │ +// │ utc_now │ {:V} │ 11:39 │ +// │ utc_now │ {:w} │ 11 │ +// │ utc_now │ {:W} │ 11 │ +// │ utc_now │ {:x} │ 11 │ +// │ utc_now │ {:X} │ 11 │ +// │ utc_now │ {:y} │ December 24 │ +// │ utc_now │ {:Y} │ December 2024 │ +// │ utc_now │ {:z} │ UTC │ +// │ utc_now │ {:Z} │ UTC │ // └─────────────────────────────┴────────────┴──────────────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_duration/README.md b/examples/xtd.core.examples/format/format_duration/README.md index 88bd36143b91..6e447fc6e8a3 100644 --- a/examples/xtd.core.examples/format/format_duration/README.md +++ b/examples/xtd.core.examples/format/format_duration/README.md @@ -22,138 +22,138 @@ xtdc run ┌────────────────────────────────────────────────────┬────────────┬────────────────────────────┐ │ time_span │ format │ representation │ ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -│ std::chrono::nanoseconds {} │ {} │ 00:00:00 | -│ std::chrono::nanoseconds {} │ {:c} │ 00:00:00 | -│ std::chrono::nanoseconds {} │ {:d} │ 0 | -│ std::chrono::nanoseconds {} │ {:D} │ 00 | -│ std::chrono::nanoseconds {} │ {:f} │ 0.0:00:00:000000000 | -│ std::chrono::nanoseconds {} │ {:F} │ 0.00:00:00:000000000 | -│ std::chrono::nanoseconds {} │ {:g} │ 0:00:00 | -│ std::chrono::nanoseconds {} │ {:G} │ 00:00:00 | -│ std::chrono::nanoseconds {} │ {:h} │ 0 | -│ std::chrono::nanoseconds {} │ {:H} │ 00 | -│ std::chrono::nanoseconds {} │ {:m} │ 0 | -│ std::chrono::nanoseconds {} │ {:M} │ 00 | -│ std::chrono::nanoseconds {} │ {:n} │ 0 | -│ std::chrono::nanoseconds {} │ {:N} │ 000000000 | -│ std::chrono::nanoseconds {} │ {:s} │ 0 | -│ std::chrono::nanoseconds {} │ {:S} │ 00 | -│ std::chrono::nanoseconds {} │ {:t} │ 0 | -│ std::chrono::nanoseconds {} │ {:T} │ 0000000 | +│ std::chrono::nanoseconds {} │ {} │ 00:00:00 │ +│ std::chrono::nanoseconds {} │ {:c} │ 00:00:00 │ +│ std::chrono::nanoseconds {} │ {:d} │ 0 │ +│ std::chrono::nanoseconds {} │ {:D} │ 00 │ +│ std::chrono::nanoseconds {} │ {:f} │ 0.0:00:00:000000000 │ +│ std::chrono::nanoseconds {} │ {:F} │ 0.00:00:00:000000000 │ +│ std::chrono::nanoseconds {} │ {:g} │ 0:00:00 │ +│ std::chrono::nanoseconds {} │ {:G} │ 00:00:00 │ +│ std::chrono::nanoseconds {} │ {:h} │ 0 │ +│ std::chrono::nanoseconds {} │ {:H} │ 00 │ +│ std::chrono::nanoseconds {} │ {:m} │ 0 │ +│ std::chrono::nanoseconds {} │ {:M} │ 00 │ +│ std::chrono::nanoseconds {} │ {:n} │ 0 │ +│ std::chrono::nanoseconds {} │ {:N} │ 000000000 │ +│ std::chrono::nanoseconds {} │ {:s} │ 0 │ +│ std::chrono::nanoseconds {} │ {:S} │ 00 │ +│ std::chrono::nanoseconds {} │ {:t} │ 0 │ +│ std::chrono::nanoseconds {} │ {:T} │ 0000000 │ ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -│ 6h + 3min + 8s │ {} │ 06:03:08 | -│ 6h + 3min + 8s │ {:c} │ 06:03:08 | -│ 6h + 3min + 8s │ {:d} │ 0 | -│ 6h + 3min + 8s │ {:D} │ 00 | -│ 6h + 3min + 8s │ {:f} │ 0.6:03:08:000000000 | -│ 6h + 3min + 8s │ {:F} │ 0.06:03:08:000000000 | -│ 6h + 3min + 8s │ {:g} │ 6:03:08 | -│ 6h + 3min + 8s │ {:G} │ 06:03:08 | -│ 6h + 3min + 8s │ {:h} │ 6 | -│ 6h + 3min + 8s │ {:H} │ 06 | -│ 6h + 3min + 8s │ {:m} │ 3 | -│ 6h + 3min + 8s │ {:M} │ 03 | -│ 6h + 3min + 8s │ {:n} │ 0 | -│ 6h + 3min + 8s │ {:N} │ 000000000 | -│ 6h + 3min + 8s │ {:s} │ 8 | -│ 6h + 3min + 8s │ {:S} │ 08 | -│ 6h + 3min + 8s │ {:t} │ 0 | -│ 6h + 3min + 8s │ {:T} │ 0000000 | +│ 6h + 3min + 8s │ {} │ 06:03:08 │ +│ 6h + 3min + 8s │ {:c} │ 06:03:08 │ +│ 6h + 3min + 8s │ {:d} │ 0 │ +│ 6h + 3min + 8s │ {:D} │ 00 │ +│ 6h + 3min + 8s │ {:f} │ 0.6:03:08:000000000 │ +│ 6h + 3min + 8s │ {:F} │ 0.06:03:08:000000000 │ +│ 6h + 3min + 8s │ {:g} │ 6:03:08 │ +│ 6h + 3min + 8s │ {:G} │ 06:03:08 │ +│ 6h + 3min + 8s │ {:h} │ 6 │ +│ 6h + 3min + 8s │ {:H} │ 06 │ +│ 6h + 3min + 8s │ {:m} │ 3 │ +│ 6h + 3min + 8s │ {:M} │ 03 │ +│ 6h + 3min + 8s │ {:n} │ 0 │ +│ 6h + 3min + 8s │ {:N} │ 000000000 │ +│ 6h + 3min + 8s │ {:s} │ 8 │ +│ 6h + 3min + 8s │ {:S} │ 08 │ +│ 6h + 3min + 8s │ {:t} │ 0 │ +│ 6h + 3min + 8s │ {:T} │ 0000000 │ ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -│ 52h + 3min + 32s │ {} │ 2.04:03:02 | -│ 52h + 3min + 32s │ {:c} │ 2.04:03:02 | -│ 52h + 3min + 32s │ {:d} │ 2 | -│ 52h + 3min + 32s │ {:D} │ 02 | -│ 52h + 3min + 32s │ {:f} │ 2.4:03:02:000000000 | -│ 52h + 3min + 32s │ {:F} │ 2.04:03:02:000000000 | -│ 52h + 3min + 32s │ {:g} │ 2.4:03:02 | -│ 52h + 3min + 32s │ {:G} │ 2.04:03:02 | -│ 52h + 3min + 32s │ {:h} │ 4 | -│ 52h + 3min + 32s │ {:H} │ 04 | -│ 52h + 3min + 32s │ {:m} │ 3 | -│ 52h + 3min + 32s │ {:M} │ 03 | -│ 52h + 3min + 32s │ {:n} │ 0 | -│ 52h + 3min + 32s │ {:N} │ 000000000 | -│ 52h + 3min + 32s │ {:s} │ 2 | -│ 52h + 3min + 32s │ {:S} │ 02 | -│ 52h + 3min + 32s │ {:t} │ 0 | -│ 52h + 3min + 32s │ {:T} │ 0000000 | +│ 52h + 3min + 32s │ {} │ 2.04:03:02 │ +│ 52h + 3min + 32s │ {:c} │ 2.04:03:02 │ +│ 52h + 3min + 32s │ {:d} │ 2 │ +│ 52h + 3min + 32s │ {:D} │ 02 │ +│ 52h + 3min + 32s │ {:f} │ 2.4:03:02:000000000 │ +│ 52h + 3min + 32s │ {:F} │ 2.04:03:02:000000000 │ +│ 52h + 3min + 32s │ {:g} │ 2.4:03:02 │ +│ 52h + 3min + 32s │ {:G} │ 2.04:03:02 │ +│ 52h + 3min + 32s │ {:h} │ 4 │ +│ 52h + 3min + 32s │ {:H} │ 04 │ +│ 52h + 3min + 32s │ {:m} │ 3 │ +│ 52h + 3min + 32s │ {:M} │ 03 │ +│ 52h + 3min + 32s │ {:n} │ 0 │ +│ 52h + 3min + 32s │ {:N} │ 000000000 │ +│ 52h + 3min + 32s │ {:s} │ 2 │ +│ 52h + 3min + 32s │ {:S} │ 02 │ +│ 52h + 3min + 32s │ {:t} │ 0 │ +│ 52h + 3min + 32s │ {:T} │ 0000000 │ ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -│ 24ms + 543ns │ {} │ 00:00:00:024000543 | -│ 24ms + 543ns │ {:c} │ 00:00:00:024000543 | -│ 24ms + 543ns │ {:d} │ 0 | -│ 24ms + 543ns │ {:D} │ 00 | -│ 24ms + 543ns │ {:f} │ 0.0:00:00:024000543 | -│ 24ms + 543ns │ {:F} │ 0.00:00:00:024000543 | -│ 24ms + 543ns │ {:g} │ 0:00:00:024000543 | -│ 24ms + 543ns │ {:G} │ 00:00:00:024000543 | -│ 24ms + 543ns │ {:h} │ 0 | -│ 24ms + 543ns │ {:H} │ 00 | -│ 24ms + 543ns │ {:m} │ 0 | -│ 24ms + 543ns │ {:M} │ 00 | -│ 24ms + 543ns │ {:n} │ 24000543 | -│ 24ms + 543ns │ {:N} │ 024000543 | -│ 24ms + 543ns │ {:s} │ 0 | -│ 24ms + 543ns │ {:S} │ 00 | -│ 24ms + 543ns │ {:t} │ 240005 | -│ 24ms + 543ns │ {:T} │ 0240005 | +│ 24ms + 543ns │ {} │ 00:00:00:024000543 │ +│ 24ms + 543ns │ {:c} │ 00:00:00:024000543 │ +│ 24ms + 543ns │ {:d} │ 0 │ +│ 24ms + 543ns │ {:D} │ 00 │ +│ 24ms + 543ns │ {:f} │ 0.0:00:00:024000543 │ +│ 24ms + 543ns │ {:F} │ 0.00:00:00:024000543 │ +│ 24ms + 543ns │ {:g} │ 0:00:00:024000543 │ +│ 24ms + 543ns │ {:G} │ 00:00:00:024000543 │ +│ 24ms + 543ns │ {:h} │ 0 │ +│ 24ms + 543ns │ {:H} │ 00 │ +│ 24ms + 543ns │ {:m} │ 0 │ +│ 24ms + 543ns │ {:M} │ 00 │ +│ 24ms + 543ns │ {:n} │ 24000543 │ +│ 24ms + 543ns │ {:N} │ 024000543 │ +│ 24ms + 543ns │ {:s} │ 0 │ +│ 24ms + 543ns │ {:S} │ 00 │ +│ 24ms + 543ns │ {:t} │ 240005 │ +│ 24ms + 543ns │ {:T} │ 0240005 │ ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -│ 52h + 3min + 2s + 24ms + 543ns │ {} │ 2.04:03:02:024000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:c} │ 2.04:03:02:024000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:d} │ 2 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:D} │ 02 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:f} │ 2.4:03:02:024000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:F} │ 2.04:03:02:024000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:g} │ 2.4:03:02:024000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:G} │ 2.04:03:02:024000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:h} │ 4 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:H} │ 04 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:m} │ 3 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:M} │ 03 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:n} │ 24000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:N} │ 024000543 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:s} │ 2 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:S} │ 02 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:t} │ 240005 | -│ 52h + 3min + 2s + 24ms + 543ns │ {:T} │ 0240005 | +│ 52h + 3min + 2s + 24ms + 543ns │ {} │ 2.04:03:02:024000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:c} │ 2.04:03:02:024000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:d} │ 2 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:D} │ 02 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:f} │ 2.4:03:02:024000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:F} │ 2.04:03:02:024000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:g} │ 2.4:03:02:024000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:G} │ 2.04:03:02:024000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:h} │ 4 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:H} │ 04 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:m} │ 3 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:M} │ 03 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:n} │ 24000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:N} │ 024000543 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:s} │ 2 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:S} │ 02 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:t} │ 240005 │ +│ 52h + 3min + 2s + 24ms + 543ns │ {:T} │ 0240005 │ ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -│ std::chrono::nanoseconds {int64_object::min_value} │ {} │ -106751.23:47:16:854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:c} │ -106751.23:47:16:854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:d} │ 106751 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:D} │ 106751 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:f} │ -106751.23:47:16:854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:F} │ -106751.23:47:16:854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:g} │ -106751.23:47:16:854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:G} │ -106751.23:47:16:854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:h} │ 23 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:H} │ 23 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:m} │ 47 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:M} │ 47 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:n} │ 854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:N} │ 854775808 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:s} │ 16 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:S} │ 16 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:t} │ 8547758 | -│ std::chrono::nanoseconds {int64_object::min_value} │ {:T} │ 8547758 | +│ std::chrono::nanoseconds {int64_object::min_value} │ {} │ -106751.23:47:16:854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:c} │ -106751.23:47:16:854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:d} │ 106751 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:D} │ 106751 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:f} │ -106751.23:47:16:854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:F} │ -106751.23:47:16:854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:g} │ -106751.23:47:16:854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:G} │ -106751.23:47:16:854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:h} │ 23 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:H} │ 23 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:m} │ 47 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:M} │ 47 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:n} │ 854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:N} │ 854775808 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:s} │ 16 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:S} │ 16 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:t} │ 8547758 │ +│ std::chrono::nanoseconds {int64_object::min_value} │ {:T} │ 8547758 │ ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -│ std::chrono::nanoseconds {int64_object::max_value} │ {} │ 106751.23:47:16:854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:c} │ 106751.23:47:16:854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:d} │ 106751 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:D} │ 106751 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:f} │ 106751.23:47:16:854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:F} │ 106751.23:47:16:854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:g} │ 106751.23:47:16:854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:G} │ 106751.23:47:16:854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:h} │ 23 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:H} │ 23 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:m} │ 47 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:M} │ 47 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:n} │ 854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:N} │ 854775807 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:s} │ 16 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:S} │ 16 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:t} │ 8547758 | -│ std::chrono::nanoseconds {int64_object::max_value} │ {:T} │ 8547758 | +│ std::chrono::nanoseconds {int64_object::max_value} │ {} │ 106751.23:47:16:854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:c} │ 106751.23:47:16:854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:d} │ 106751 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:D} │ 106751 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:f} │ 106751.23:47:16:854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:F} │ 106751.23:47:16:854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:g} │ 106751.23:47:16:854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:G} │ 106751.23:47:16:854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:h} │ 23 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:H} │ 23 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:m} │ 47 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:M} │ 47 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:n} │ 854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:N} │ 854775807 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:s} │ 16 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:S} │ 16 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:t} │ 8547758 │ +│ std::chrono::nanoseconds {int64_object::max_value} │ {:T} │ 8547758 │ └────────────────────────────────────────────────────┴────────────┴────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_duration/src/format_duration.cpp b/examples/xtd.core.examples/format/format_duration/src/format_duration.cpp index 53194460dc7c..cf97170cb590 100644 --- a/examples/xtd.core.examples/format/format_duration/src/format_duration.cpp +++ b/examples/xtd.core.examples/format/format_duration/src/format_duration.cpp @@ -1,6 +1,7 @@ #include #include -#include +#include +#include using namespace xtd; using namespace std::literals; @@ -15,24 +16,24 @@ auto print_duration(const string& text, const std::chrono::duration int { // ┌────────────────────────────────────────────────────┬────────────┬────────────────────────────┐ // │ time_span │ format │ representation │ // ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -// │ std::chrono::nanoseconds {} │ {} │ 00:00:00 | -// │ std::chrono::nanoseconds {} │ {:c} │ 00:00:00 | -// │ std::chrono::nanoseconds {} │ {:d} │ 0 | -// │ std::chrono::nanoseconds {} │ {:D} │ 00 | -// │ std::chrono::nanoseconds {} │ {:f} │ 0.0:00:00:000000000 | -// │ std::chrono::nanoseconds {} │ {:F} │ 0.00:00:00:000000000 | -// │ std::chrono::nanoseconds {} │ {:g} │ 0:00:00 | -// │ std::chrono::nanoseconds {} │ {:G} │ 00:00:00 | -// │ std::chrono::nanoseconds {} │ {:h} │ 0 | -// │ std::chrono::nanoseconds {} │ {:H} │ 00 | -// │ std::chrono::nanoseconds {} │ {:m} │ 0 | -// │ std::chrono::nanoseconds {} │ {:M} │ 00 | -// │ std::chrono::nanoseconds {} │ {:n} │ 0 | -// │ std::chrono::nanoseconds {} │ {:N} │ 000000000 | -// │ std::chrono::nanoseconds {} │ {:s} │ 0 | -// │ std::chrono::nanoseconds {} │ {:S} │ 00 | -// │ std::chrono::nanoseconds {} │ {:t} │ 0 | -// │ std::chrono::nanoseconds {} │ {:T} │ 0000000 | +// │ std::chrono::nanoseconds {} │ {} │ 00:00:00 │ +// │ std::chrono::nanoseconds {} │ {:c} │ 00:00:00 │ +// │ std::chrono::nanoseconds {} │ {:d} │ 0 │ +// │ std::chrono::nanoseconds {} │ {:D} │ 00 │ +// │ std::chrono::nanoseconds {} │ {:f} │ 0.0:00:00:000000000 │ +// │ std::chrono::nanoseconds {} │ {:F} │ 0.00:00:00:000000000 │ +// │ std::chrono::nanoseconds {} │ {:g} │ 0:00:00 │ +// │ std::chrono::nanoseconds {} │ {:G} │ 00:00:00 │ +// │ std::chrono::nanoseconds {} │ {:h} │ 0 │ +// │ std::chrono::nanoseconds {} │ {:H} │ 00 │ +// │ std::chrono::nanoseconds {} │ {:m} │ 0 │ +// │ std::chrono::nanoseconds {} │ {:M} │ 00 │ +// │ std::chrono::nanoseconds {} │ {:n} │ 0 │ +// │ std::chrono::nanoseconds {} │ {:N} │ 000000000 │ +// │ std::chrono::nanoseconds {} │ {:s} │ 0 │ +// │ std::chrono::nanoseconds {} │ {:S} │ 00 │ +// │ std::chrono::nanoseconds {} │ {:t} │ 0 │ +// │ std::chrono::nanoseconds {} │ {:T} │ 0000000 │ // ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -// │ 6h + 3min + 8s │ {} │ 06:03:08 | -// │ 6h + 3min + 8s │ {:c} │ 06:03:08 | -// │ 6h + 3min + 8s │ {:d} │ 0 | -// │ 6h + 3min + 8s │ {:D} │ 00 | -// │ 6h + 3min + 8s │ {:f} │ 0.6:03:08:000000000 | -// │ 6h + 3min + 8s │ {:F} │ 0.06:03:08:000000000 | -// │ 6h + 3min + 8s │ {:g} │ 6:03:08 | -// │ 6h + 3min + 8s │ {:G} │ 06:03:08 | -// │ 6h + 3min + 8s │ {:h} │ 6 | -// │ 6h + 3min + 8s │ {:H} │ 06 | -// │ 6h + 3min + 8s │ {:m} │ 3 | -// │ 6h + 3min + 8s │ {:M} │ 03 | -// │ 6h + 3min + 8s │ {:n} │ 0 | -// │ 6h + 3min + 8s │ {:N} │ 000000000 | -// │ 6h + 3min + 8s │ {:s} │ 8 | -// │ 6h + 3min + 8s │ {:S} │ 08 | -// │ 6h + 3min + 8s │ {:t} │ 0 | -// │ 6h + 3min + 8s │ {:T} │ 0000000 | +// │ 6h + 3min + 8s │ {} │ 06:03:08 │ +// │ 6h + 3min + 8s │ {:c} │ 06:03:08 │ +// │ 6h + 3min + 8s │ {:d} │ 0 │ +// │ 6h + 3min + 8s │ {:D} │ 00 │ +// │ 6h + 3min + 8s │ {:f} │ 0.6:03:08:000000000 │ +// │ 6h + 3min + 8s │ {:F} │ 0.06:03:08:000000000 │ +// │ 6h + 3min + 8s │ {:g} │ 6:03:08 │ +// │ 6h + 3min + 8s │ {:G} │ 06:03:08 │ +// │ 6h + 3min + 8s │ {:h} │ 6 │ +// │ 6h + 3min + 8s │ {:H} │ 06 │ +// │ 6h + 3min + 8s │ {:m} │ 3 │ +// │ 6h + 3min + 8s │ {:M} │ 03 │ +// │ 6h + 3min + 8s │ {:n} │ 0 │ +// │ 6h + 3min + 8s │ {:N} │ 000000000 │ +// │ 6h + 3min + 8s │ {:s} │ 8 │ +// │ 6h + 3min + 8s │ {:S} │ 08 │ +// │ 6h + 3min + 8s │ {:t} │ 0 │ +// │ 6h + 3min + 8s │ {:T} │ 0000000 │ // ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -// │ 52h + 3min + 32s │ {} │ 2.04:03:02 | -// │ 52h + 3min + 32s │ {:c} │ 2.04:03:02 | -// │ 52h + 3min + 32s │ {:d} │ 2 | -// │ 52h + 3min + 32s │ {:D} │ 02 | -// │ 52h + 3min + 32s │ {:f} │ 2.4:03:02:000000000 | -// │ 52h + 3min + 32s │ {:F} │ 2.04:03:02:000000000 | -// │ 52h + 3min + 32s │ {:g} │ 2.4:03:02 | -// │ 52h + 3min + 32s │ {:G} │ 2.04:03:02 | -// │ 52h + 3min + 32s │ {:h} │ 4 | -// │ 52h + 3min + 32s │ {:H} │ 04 | -// │ 52h + 3min + 32s │ {:m} │ 3 | -// │ 52h + 3min + 32s │ {:M} │ 03 | -// │ 52h + 3min + 32s │ {:n} │ 0 | -// │ 52h + 3min + 32s │ {:N} │ 000000000 | -// │ 52h + 3min + 32s │ {:s} │ 2 | -// │ 52h + 3min + 32s │ {:S} │ 02 | -// │ 52h + 3min + 32s │ {:t} │ 0 | -// │ 52h + 3min + 32s │ {:T} │ 0000000 | +// │ 52h + 3min + 32s │ {} │ 2.04:03:02 │ +// │ 52h + 3min + 32s │ {:c} │ 2.04:03:02 │ +// │ 52h + 3min + 32s │ {:d} │ 2 │ +// │ 52h + 3min + 32s │ {:D} │ 02 │ +// │ 52h + 3min + 32s │ {:f} │ 2.4:03:02:000000000 │ +// │ 52h + 3min + 32s │ {:F} │ 2.04:03:02:000000000 │ +// │ 52h + 3min + 32s │ {:g} │ 2.4:03:02 │ +// │ 52h + 3min + 32s │ {:G} │ 2.04:03:02 │ +// │ 52h + 3min + 32s │ {:h} │ 4 │ +// │ 52h + 3min + 32s │ {:H} │ 04 │ +// │ 52h + 3min + 32s │ {:m} │ 3 │ +// │ 52h + 3min + 32s │ {:M} │ 03 │ +// │ 52h + 3min + 32s │ {:n} │ 0 │ +// │ 52h + 3min + 32s │ {:N} │ 000000000 │ +// │ 52h + 3min + 32s │ {:s} │ 2 │ +// │ 52h + 3min + 32s │ {:S} │ 02 │ +// │ 52h + 3min + 32s │ {:t} │ 0 │ +// │ 52h + 3min + 32s │ {:T} │ 0000000 │ // ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -// │ 24ms + 543ns │ {} │ 00:00:00:024000543 | -// │ 24ms + 543ns │ {:c} │ 00:00:00:024000543 | -// │ 24ms + 543ns │ {:d} │ 0 | -// │ 24ms + 543ns │ {:D} │ 00 | -// │ 24ms + 543ns │ {:f} │ 0.0:00:00:024000543 | -// │ 24ms + 543ns │ {:F} │ 0.00:00:00:024000543 | -// │ 24ms + 543ns │ {:g} │ 0:00:00:024000543 | -// │ 24ms + 543ns │ {:G} │ 00:00:00:024000543 | -// │ 24ms + 543ns │ {:h} │ 0 | -// │ 24ms + 543ns │ {:H} │ 00 | -// │ 24ms + 543ns │ {:m} │ 0 | -// │ 24ms + 543ns │ {:M} │ 00 | -// │ 24ms + 543ns │ {:n} │ 24000543 | -// │ 24ms + 543ns │ {:N} │ 024000543 | -// │ 24ms + 543ns │ {:s} │ 0 | -// │ 24ms + 543ns │ {:S} │ 00 | -// │ 24ms + 543ns │ {:t} │ 240005 | -// │ 24ms + 543ns │ {:T} │ 0240005 | +// │ 24ms + 543ns │ {} │ 00:00:00:024000543 │ +// │ 24ms + 543ns │ {:c} │ 00:00:00:024000543 │ +// │ 24ms + 543ns │ {:d} │ 0 │ +// │ 24ms + 543ns │ {:D} │ 00 │ +// │ 24ms + 543ns │ {:f} │ 0.0:00:00:024000543 │ +// │ 24ms + 543ns │ {:F} │ 0.00:00:00:024000543 │ +// │ 24ms + 543ns │ {:g} │ 0:00:00:024000543 │ +// │ 24ms + 543ns │ {:G} │ 00:00:00:024000543 │ +// │ 24ms + 543ns │ {:h} │ 0 │ +// │ 24ms + 543ns │ {:H} │ 00 │ +// │ 24ms + 543ns │ {:m} │ 0 │ +// │ 24ms + 543ns │ {:M} │ 00 │ +// │ 24ms + 543ns │ {:n} │ 24000543 │ +// │ 24ms + 543ns │ {:N} │ 024000543 │ +// │ 24ms + 543ns │ {:s} │ 0 │ +// │ 24ms + 543ns │ {:S} │ 00 │ +// │ 24ms + 543ns │ {:t} │ 240005 │ +// │ 24ms + 543ns │ {:T} │ 0240005 │ // ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -// │ 52h + 3min + 2s + 24ms + 543ns │ {} │ 2.04:03:02:024000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:c} │ 2.04:03:02:024000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:d} │ 2 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:D} │ 02 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:f} │ 2.4:03:02:024000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:F} │ 2.04:03:02:024000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:g} │ 2.4:03:02:024000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:G} │ 2.04:03:02:024000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:h} │ 4 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:H} │ 04 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:m} │ 3 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:M} │ 03 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:n} │ 24000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:N} │ 024000543 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:s} │ 2 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:S} │ 02 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:t} │ 240005 | -// │ 52h + 3min + 2s + 24ms + 543ns │ {:T} │ 0240005 | +// │ 52h + 3min + 2s + 24ms + 543ns │ {} │ 2.04:03:02:024000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:c} │ 2.04:03:02:024000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:d} │ 2 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:D} │ 02 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:f} │ 2.4:03:02:024000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:F} │ 2.04:03:02:024000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:g} │ 2.4:03:02:024000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:G} │ 2.04:03:02:024000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:h} │ 4 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:H} │ 04 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:m} │ 3 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:M} │ 03 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:n} │ 24000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:N} │ 024000543 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:s} │ 2 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:S} │ 02 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:t} │ 240005 │ +// │ 52h + 3min + 2s + 24ms + 543ns │ {:T} │ 0240005 │ // ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -// │ std::chrono::nanoseconds {int64_object::min_value} │ {} │ -106751.23:47:16:854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:c} │ -106751.23:47:16:854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:d} │ 106751 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:D} │ 106751 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:f} │ -106751.23:47:16:854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:F} │ -106751.23:47:16:854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:g} │ -106751.23:47:16:854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:G} │ -106751.23:47:16:854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:h} │ 23 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:H} │ 23 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:m} │ 47 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:M} │ 47 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:n} │ 854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:N} │ 854775808 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:s} │ 16 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:S} │ 16 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:t} │ 8547758 | -// │ std::chrono::nanoseconds {int64_object::min_value} │ {:T} │ 8547758 | +// │ std::chrono::nanoseconds {int64_object::min_value} │ {} │ -106751.23:47:16:854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:c} │ -106751.23:47:16:854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:d} │ 106751 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:D} │ 106751 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:f} │ -106751.23:47:16:854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:F} │ -106751.23:47:16:854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:g} │ -106751.23:47:16:854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:G} │ -106751.23:47:16:854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:h} │ 23 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:H} │ 23 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:m} │ 47 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:M} │ 47 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:n} │ 854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:N} │ 854775808 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:s} │ 16 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:S} │ 16 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:t} │ 8547758 │ +// │ std::chrono::nanoseconds {int64_object::min_value} │ {:T} │ 8547758 │ // ├────────────────────────────────────────────────────┼────────────┼────────────────────────────┤ -// │ std::chrono::nanoseconds {int64_object::max_value} │ {} │ 106751.23:47:16:854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:c} │ 106751.23:47:16:854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:d} │ 106751 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:D} │ 106751 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:f} │ 106751.23:47:16:854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:F} │ 106751.23:47:16:854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:g} │ 106751.23:47:16:854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:G} │ 106751.23:47:16:854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:h} │ 23 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:H} │ 23 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:m} │ 47 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:M} │ 47 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:n} │ 854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:N} │ 854775807 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:s} │ 16 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:S} │ 16 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:t} │ 8547758 | -// │ std::chrono::nanoseconds {int64_object::max_value} │ {:T} │ 8547758 | +// │ std::chrono::nanoseconds {int64_object::max_value} │ {} │ 106751.23:47:16:854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:c} │ 106751.23:47:16:854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:d} │ 106751 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:D} │ 106751 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:f} │ 106751.23:47:16:854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:F} │ 106751.23:47:16:854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:g} │ 106751.23:47:16:854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:G} │ 106751.23:47:16:854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:h} │ 23 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:H} │ 23 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:m} │ 47 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:M} │ 47 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:n} │ 854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:N} │ 854775807 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:s} │ 16 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:S} │ 16 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:t} │ 8547758 │ +// │ std::chrono::nanoseconds {int64_object::max_value} │ {:T} │ 8547758 │ // └────────────────────────────────────────────────────┴────────────┴────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_enum/README.md b/examples/xtd.core.examples/format/format_enum/README.md index 02ca7a9037cd..38dbfe0c77a8 100644 --- a/examples/xtd.core.examples/format/format_enum/README.md +++ b/examples/xtd.core.examples/format/format_enum/README.md @@ -19,16 +19,68 @@ xtdc run # Output (with colors) ``` -saturday -0b101 -0b101 -5 -5 -saturday -saturday -05 -05 -0x5 -0x5 +┌──────────────────────┬────────────┬──────────────────────────────────┐ +│ week_day │ format │ representation │ +├──────────────────────┼────────────┼──────────────────────────────────┤ +│ monday │ {} │ monday │ +│ monday │ {:b} │ 0 │ +│ monday │ {:b4} │ 0000 │ +│ monday │ {:B} │ 0 │ +│ monday │ {:B4} │ 0000 │ +│ monday │ {:d} │ 0 │ +│ monday │ {:d1} │ 0 │ +│ monday │ {:D} │ 0 │ +│ monday │ {:D1} │ 0 │ +│ monday │ {:g} │ monday │ +│ monday │ {:G} │ monday │ +│ monday │ {:o} │ 0 │ +│ monday │ {:o2} │ 00 │ +│ monday │ {:O} │ 0 │ +│ monday │ {:O2} │ 00 │ +│ monday │ {:x} │ 0 │ +│ monday │ {:x2} │ 00 │ +│ monday │ {:X} │ 0 │ +│ monday │ {:X2} │ 00 │ +├──────────────────────┼────────────┼──────────────────────────────────┤ +│ thursday │ {} │ thursday │ +│ thursday │ {:b} │ 11 │ +│ thursday │ {:b4} │ 0011 │ +│ thursday │ {:B} │ 11 │ +│ thursday │ {:B4} │ 0011 │ +│ thursday │ {:d} │ 3 │ +│ thursday │ {:d1} │ 3 │ +│ thursday │ {:D} │ 3 │ +│ thursday │ {:D1} │ 3 │ +│ thursday │ {:g} │ thursday │ +│ thursday │ {:G} │ thursday │ +│ thursday │ {:o} │ 3 │ +│ thursday │ {:o2} │ 03 │ +│ thursday │ {:O} │ 3 │ +│ thursday │ {:O2} │ 03 │ +│ thursday │ {:x} │ 3 │ +│ thursday │ {:x2} │ 03 │ +│ thursday │ {:X} │ 3 │ +│ thursday │ {:X2} │ 03 │ +├──────────────────────┼────────────┼──────────────────────────────────┤ +│ sunday │ {} │ sunday │ +│ sunday │ {:b} │ 110 │ +│ sunday │ {:b4} │ 0110 │ +│ sunday │ {:B} │ 110 │ +│ sunday │ {:B4} │ 0110 │ +│ sunday │ {:d} │ 6 │ +│ sunday │ {:d1} │ 6 │ +│ sunday │ {:D} │ 6 │ +│ sunday │ {:D1} │ 6 │ +│ sunday │ {:g} │ sunday │ +│ sunday │ {:G} │ sunday │ +│ sunday │ {:o} │ 6 │ +│ sunday │ {:o2} │ 06 │ +│ sunday │ {:O} │ 6 │ +│ sunday │ {:O2} │ 06 │ +│ sunday │ {:x} │ 6 │ +│ sunday │ {:x2} │ 06 │ +│ sunday │ {:X} │ 6 │ +│ sunday │ {:X2} │ 06 │ +└──────────────────────┴────────────┴──────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_enum/src/format_enum.cpp b/examples/xtd.core.examples/format/format_enum/src/format_enum.cpp index 50665c189b08..f508df1434e4 100644 --- a/examples/xtd.core.examples/format/format_enum/src/format_enum.cpp +++ b/examples/xtd.core.examples/format/format_enum/src/format_enum.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include using namespace xtd; @@ -15,35 +15,114 @@ enum week_day { sunday }; -// Only this operator is needed for week_day enum to be recognized by string::format(). +// Only this operator is needed for week_day enum to be recognized by format(). template<> struct xtd::enum_register { explicit operator auto() const noexcept {return xtd::enum_collection {{week_day::monday, "monday"}, {week_day::tuesday, "tuesday"}, {week_day::wednesday, "wednesday"}, {week_day::thursday, "thursday"}, {week_day::friday, "friday"}, {week_day::saturday, "saturday"}, {week_day::sunday, "sunday"}};} }; +enum class cap {title, middle, end}; + +auto print_week_day(const string& text, week_day value, cap c) { + if (c == cap::title) + console::out + << "┌──────────────────────┬────────────┬──────────────────────────────────┐" << environment::new_line + << "│ week_day │ format │ representation │" << environment::new_line + << "├──────────────────────┼────────────┼──────────────────────────────────┤" << environment::new_line; + + console::out << "│ " << text.pad_right(20) << " │ {} │ " << format("{}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:b} │ " << format("{:b}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:b4} │ " << format("{:b4}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:B} │ " << format("{:B}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:B4} │ " << format("{:B4}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:d} │ " << format("{:d}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:d1} │ " << format("{:d1}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:D} │ " << format("{:D}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:D1} │ " << format("{:D1}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:g} │ " << format("{:g}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:G} │ " << format("{:G}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:o} │ " << format("{:o}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:o2} │ " << format("{:o2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:O} │ " << format("{:O}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:O2} │ " << format("{:O2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:x} │ " << format("{:x}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:x2} │ " << format("{:x2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:X} │ " << format("{:X}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:X2} │ " << format("{:X2}", value).pad_right(32) << " │" << environment::new_line; + + if (c != cap::end) + console::out << "├──────────────────────┼────────────┼──────────────────────────────────┤" << environment::new_line; + else + console::out << "└──────────────────────┴────────────┴──────────────────────────────────┘" << environment::new_line; +} + auto main() -> int { - console::out << string::format("{}", week_day::saturday) << environment::new_line; - console::out << string::format("0b{:b}", week_day::saturday) << environment::new_line; - console::out << string::format("0b{:B}", week_day::saturday) << environment::new_line; - console::out << string::format("{:d}", week_day::saturday) << environment::new_line; - console::out << string::format("{:D}", week_day::saturday) << environment::new_line; - console::out << string::format("{:g}", week_day::saturday) << environment::new_line; - console::out << string::format("{:G}", week_day::saturday) << environment::new_line; - console::out << string::format("0{:o}", week_day::saturday) << environment::new_line; - console::out << string::format("0{:O}", week_day::saturday) << environment::new_line; - console::out << string::format("0x{:x}", week_day::saturday) << environment::new_line; - console::out << string::format("0x{:X}", week_day::saturday) << environment::new_line; + print_week_day("monday", monday, cap::title); + print_week_day("thursday", thursday, cap::middle); + print_week_day("sunday", sunday, cap::end); } // This code produces the following output : // -// saturday -// 0b101 -// 0b101 -// 5 -// 5 -// saturday -// saturday -// 05 -// 05 -// 0x5 -// 0x5 +// ┌──────────────────────┬────────────┬──────────────────────────────────┐ +// │ week_day │ format │ representation │ +// ├──────────────────────┼────────────┼──────────────────────────────────┤ +// │ monday │ {} │ monday │ +// │ monday │ {:b} │ 0 │ +// │ monday │ {:b4} │ 0000 │ +// │ monday │ {:B} │ 0 │ +// │ monday │ {:B4} │ 0000 │ +// │ monday │ {:d} │ 0 │ +// │ monday │ {:d1} │ 0 │ +// │ monday │ {:D} │ 0 │ +// │ monday │ {:D1} │ 0 │ +// │ monday │ {:g} │ monday │ +// │ monday │ {:G} │ monday │ +// │ monday │ {:o} │ 0 │ +// │ monday │ {:o2} │ 00 │ +// │ monday │ {:O} │ 0 │ +// │ monday │ {:O2} │ 00 │ +// │ monday │ {:x} │ 0 │ +// │ monday │ {:x2} │ 00 │ +// │ monday │ {:X} │ 0 │ +// │ monday │ {:X2} │ 00 │ +// ├──────────────────────┼────────────┼──────────────────────────────────┤ +// │ thursday │ {} │ thursday │ +// │ thursday │ {:b} │ 11 │ +// │ thursday │ {:b4} │ 0011 │ +// │ thursday │ {:B} │ 11 │ +// │ thursday │ {:B4} │ 0011 │ +// │ thursday │ {:d} │ 3 │ +// │ thursday │ {:d1} │ 3 │ +// │ thursday │ {:D} │ 3 │ +// │ thursday │ {:D1} │ 3 │ +// │ thursday │ {:g} │ thursday │ +// │ thursday │ {:G} │ thursday │ +// │ thursday │ {:o} │ 3 │ +// │ thursday │ {:o2} │ 03 │ +// │ thursday │ {:O} │ 3 │ +// │ thursday │ {:O2} │ 03 │ +// │ thursday │ {:x} │ 3 │ +// │ thursday │ {:x2} │ 03 │ +// │ thursday │ {:X} │ 3 │ +// │ thursday │ {:X2} │ 03 │ +// ├──────────────────────┼────────────┼──────────────────────────────────┤ +// │ sunday │ {} │ sunday │ +// │ sunday │ {:b} │ 110 │ +// │ sunday │ {:b4} │ 0110 │ +// │ sunday │ {:B} │ 110 │ +// │ sunday │ {:B4} │ 0110 │ +// │ sunday │ {:d} │ 6 │ +// │ sunday │ {:d1} │ 6 │ +// │ sunday │ {:D} │ 6 │ +// │ sunday │ {:D1} │ 6 │ +// │ sunday │ {:g} │ sunday │ +// │ sunday │ {:G} │ sunday │ +// │ sunday │ {:o} │ 6 │ +// │ sunday │ {:o2} │ 06 │ +// │ sunday │ {:O} │ 6 │ +// │ sunday │ {:O2} │ 06 │ +// │ sunday │ {:x} │ 6 │ +// │ sunday │ {:x2} │ 06 │ +// │ sunday │ {:X} │ 6 │ +// │ sunday │ {:X2} │ 06 │ +// └──────────────────────┴────────────┴──────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_enum_class/README.md b/examples/xtd.core.examples/format/format_enum_class/README.md index 7c08f6365d58..b4bcc1c8cacf 100644 --- a/examples/xtd.core.examples/format/format_enum_class/README.md +++ b/examples/xtd.core.examples/format/format_enum_class/README.md @@ -19,16 +19,68 @@ xtdc run # Output (with colors) ``` -saturday -0b101 -0b101 -5 -5 -saturday -saturday -05 -05 -0x5 -0x5 +┌──────────────────────┬────────────┬──────────────────────────────────┐ +│ week_day │ format │ representation │ +├──────────────────────┼────────────┼──────────────────────────────────┤ +│ week_day::monday │ {} │ monday │ +│ week_day::monday │ {:b} │ 0 │ +│ week_day::monday │ {:b4} │ 0000 │ +│ week_day::monday │ {:B} │ 0 │ +│ week_day::monday │ {:B4} │ 0000 │ +│ week_day::monday │ {:d} │ 0 │ +│ week_day::monday │ {:d1} │ 0 │ +│ week_day::monday │ {:D} │ 0 │ +│ week_day::monday │ {:D1} │ 0 │ +│ week_day::monday │ {:g} │ monday │ +│ week_day::monday │ {:G} │ monday │ +│ week_day::monday │ {:o} │ 0 │ +│ week_day::monday │ {:o2} │ 00 │ +│ week_day::monday │ {:O} │ 0 │ +│ week_day::monday │ {:O2} │ 00 │ +│ week_day::monday │ {:x} │ 0 │ +│ week_day::monday │ {:x2} │ 00 │ +│ week_day::monday │ {:X} │ 0 │ +│ week_day::monday │ {:X2} │ 00 │ +├──────────────────────┼────────────┼──────────────────────────────────┤ +│ week_day::thursday │ {} │ thursday │ +│ week_day::thursday │ {:b} │ 11 │ +│ week_day::thursday │ {:b4} │ 0011 │ +│ week_day::thursday │ {:B} │ 11 │ +│ week_day::thursday │ {:B4} │ 0011 │ +│ week_day::thursday │ {:d} │ 3 │ +│ week_day::thursday │ {:d1} │ 3 │ +│ week_day::thursday │ {:D} │ 3 │ +│ week_day::thursday │ {:D1} │ 3 │ +│ week_day::thursday │ {:g} │ thursday │ +│ week_day::thursday │ {:G} │ thursday │ +│ week_day::thursday │ {:o} │ 3 │ +│ week_day::thursday │ {:o2} │ 03 │ +│ week_day::thursday │ {:O} │ 3 │ +│ week_day::thursday │ {:O2} │ 03 │ +│ week_day::thursday │ {:x} │ 3 │ +│ week_day::thursday │ {:x2} │ 03 │ +│ week_day::thursday │ {:X} │ 3 │ +│ week_day::thursday │ {:X2} │ 03 │ +├──────────────────────┼────────────┼──────────────────────────────────┤ +│ week_day::sunday │ {} │ sunday │ +│ week_day::sunday │ {:b} │ 110 │ +│ week_day::sunday │ {:b4} │ 0110 │ +│ week_day::sunday │ {:B} │ 110 │ +│ week_day::sunday │ {:B4} │ 0110 │ +│ week_day::sunday │ {:d} │ 6 │ +│ week_day::sunday │ {:d1} │ 6 │ +│ week_day::sunday │ {:D} │ 6 │ +│ week_day::sunday │ {:D1} │ 6 │ +│ week_day::sunday │ {:g} │ sunday │ +│ week_day::sunday │ {:G} │ sunday │ +│ week_day::sunday │ {:o} │ 6 │ +│ week_day::sunday │ {:o2} │ 06 │ +│ week_day::sunday │ {:O} │ 6 │ +│ week_day::sunday │ {:O2} │ 06 │ +│ week_day::sunday │ {:x} │ 6 │ +│ week_day::sunday │ {:x2} │ 06 │ +│ week_day::sunday │ {:X} │ 6 │ +│ week_day::sunday │ {:X2} │ 06 │ +└──────────────────────┴────────────┴──────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_enum_class/src/format_enum_class.cpp b/examples/xtd.core.examples/format/format_enum_class/src/format_enum_class.cpp index 9db712ac55c8..1463a9fca15a 100644 --- a/examples/xtd.core.examples/format/format_enum_class/src/format_enum_class.cpp +++ b/examples/xtd.core.examples/format/format_enum_class/src/format_enum_class.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include using namespace xtd; @@ -20,30 +20,109 @@ template<> struct xtd::enum_register { explicit operator auto() const noexcept {return xtd::enum_collection {{week_day::monday, "monday"}, {week_day::tuesday, "tuesday"}, {week_day::wednesday, "wednesday"}, {week_day::thursday, "thursday"}, {week_day::friday, "friday"}, {week_day::saturday, "saturday"}, {week_day::sunday, "sunday"}};} }; +enum class cap {title, middle, end}; + +auto print_week_day(const string& text, week_day value, cap c) { + if (c == cap::title) + console::out + << "┌──────────────────────┬────────────┬──────────────────────────────────┐" << environment::new_line + << "│ week_day │ format │ representation │" << environment::new_line + << "├──────────────────────┼────────────┼──────────────────────────────────┤" << environment::new_line; + + console::out << "│ " << text.pad_right(20) << " │ {} │ " << format("{}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:b} │ " << format("{:b}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:b4} │ " << format("{:b4}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:B} │ " << format("{:B}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:B4} │ " << format("{:B4}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:d} │ " << format("{:d}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:d1} │ " << format("{:d1}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:D} │ " << format("{:D}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:D1} │ " << format("{:D1}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:g} │ " << format("{:g}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:G} │ " << format("{:G}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:o} │ " << format("{:o}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:o2} │ " << format("{:o2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:O} │ " << format("{:O}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:O2} │ " << format("{:O2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:x} │ " << format("{:x}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:x2} │ " << format("{:x2}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:X} │ " << format("{:X}", value).pad_right(32) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(20) << " │ {:X2} │ " << format("{:X2}", value).pad_right(32) << " │" << environment::new_line; + + if (c != cap::end) + console::out << "├──────────────────────┼────────────┼──────────────────────────────────┤" << environment::new_line; + else + console::out << "└──────────────────────┴────────────┴──────────────────────────────────┘" << environment::new_line; +} + auto main() -> int { - console::out << string::format("{}", week_day::saturday) << environment::new_line; - console::out << string::format("0b{:b}", week_day::saturday) << environment::new_line; - console::out << string::format("0b{:B}", week_day::saturday) << environment::new_line; - console::out << string::format("{:d}", week_day::saturday) << environment::new_line; - console::out << string::format("{:D}", week_day::saturday) << environment::new_line; - console::out << string::format("{:g}", week_day::saturday) << environment::new_line; - console::out << string::format("{:G}", week_day::saturday) << environment::new_line; - console::out << string::format("0{:o}", week_day::saturday) << environment::new_line; - console::out << string::format("0{:O}", week_day::saturday) << environment::new_line; - console::out << string::format("0x{:x}", week_day::saturday) << environment::new_line; - console::out << string::format("0x{:X}", week_day::saturday) << environment::new_line; + print_week_day("week_day::monday", week_day::monday, cap::title); + print_week_day("week_day::thursday", week_day::thursday, cap::middle); + print_week_day("week_day::sunday", week_day::sunday, cap::end); } // This code produces the following output : // -// saturday -// 0b101 -// 0b101 -// 5 -// 5 -// saturday -// saturday -// 05 -// 05 -// 0x5 -// 0x5 +// ┌──────────────────────┬────────────┬──────────────────────────────────┐ +// │ week_day │ format │ representation │ +// ├──────────────────────┼────────────┼──────────────────────────────────┤ +// │ week_day::monday │ {} │ monday │ +// │ week_day::monday │ {:b} │ 0 │ +// │ week_day::monday │ {:b4} │ 0000 │ +// │ week_day::monday │ {:B} │ 0 │ +// │ week_day::monday │ {:B4} │ 0000 │ +// │ week_day::monday │ {:d} │ 0 │ +// │ week_day::monday │ {:d1} │ 0 │ +// │ week_day::monday │ {:D} │ 0 │ +// │ week_day::monday │ {:D1} │ 0 │ +// │ week_day::monday │ {:g} │ monday │ +// │ week_day::monday │ {:G} │ monday │ +// │ week_day::monday │ {:o} │ 0 │ +// │ week_day::monday │ {:o2} │ 00 │ +// │ week_day::monday │ {:O} │ 0 │ +// │ week_day::monday │ {:O2} │ 00 │ +// │ week_day::monday │ {:x} │ 0 │ +// │ week_day::monday │ {:x2} │ 00 │ +// │ week_day::monday │ {:X} │ 0 │ +// │ week_day::monday │ {:X2} │ 00 │ +// ├──────────────────────┼────────────┼──────────────────────────────────┤ +// │ week_day::thursday │ {} │ thursday │ +// │ week_day::thursday │ {:b} │ 11 │ +// │ week_day::thursday │ {:b4} │ 0011 │ +// │ week_day::thursday │ {:B} │ 11 │ +// │ week_day::thursday │ {:B4} │ 0011 │ +// │ week_day::thursday │ {:d} │ 3 │ +// │ week_day::thursday │ {:d1} │ 3 │ +// │ week_day::thursday │ {:D} │ 3 │ +// │ week_day::thursday │ {:D1} │ 3 │ +// │ week_day::thursday │ {:g} │ thursday │ +// │ week_day::thursday │ {:G} │ thursday │ +// │ week_day::thursday │ {:o} │ 3 │ +// │ week_day::thursday │ {:o2} │ 03 │ +// │ week_day::thursday │ {:O} │ 3 │ +// │ week_day::thursday │ {:O2} │ 03 │ +// │ week_day::thursday │ {:x} │ 3 │ +// │ week_day::thursday │ {:x2} │ 03 │ +// │ week_day::thursday │ {:X} │ 3 │ +// │ week_day::thursday │ {:X2} │ 03 │ +// ├──────────────────────┼────────────┼──────────────────────────────────┤ +// │ week_day::sunday │ {} │ sunday │ +// │ week_day::sunday │ {:b} │ 110 │ +// │ week_day::sunday │ {:b4} │ 0110 │ +// │ week_day::sunday │ {:B} │ 110 │ +// │ week_day::sunday │ {:B4} │ 0110 │ +// │ week_day::sunday │ {:d} │ 6 │ +// │ week_day::sunday │ {:d1} │ 6 │ +// │ week_day::sunday │ {:D} │ 6 │ +// │ week_day::sunday │ {:D1} │ 6 │ +// │ week_day::sunday │ {:g} │ sunday │ +// │ week_day::sunday │ {:G} │ sunday │ +// │ week_day::sunday │ {:o} │ 6 │ +// │ week_day::sunday │ {:o2} │ 06 │ +// │ week_day::sunday │ {:O} │ 6 │ +// │ week_day::sunday │ {:O2} │ 06 │ +// │ week_day::sunday │ {:x} │ 6 │ +// │ week_day::sunday │ {:x2} │ 06 │ +// │ week_day::sunday │ {:X} │ 6 │ +// │ week_day::sunday │ {:X2} │ 06 │ +// └──────────────────────┴────────────┴──────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_numeric/README.md b/examples/xtd.core.examples/format/format_numeric/README.md index a9095f2b6a2c..75a756ebf1db 100644 --- a/examples/xtd.core.examples/format/format_numeric/README.md +++ b/examples/xtd.core.examples/format/format_numeric/README.md @@ -22,101 +22,101 @@ xtdc run ┌───────────┬────────────┬──────────────────────────────────┐ │ number │ format │ representation │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 0 │ {} │ 0 | -│ 0 │ {:b} │ 0 | -│ 0 │ {:b32} │ 00000000000000000000000000000000 | -│ 0 │ {:B} │ 0 | -│ 0 │ {:B32} │ 00000000000000000000000000000000 | -│ 0 │ {:c} │ $0.00 | -│ 0 │ {:C} │ $0.00 | -│ 0 │ {:d} │ 0 | -│ 0 │ {:d16} │ 0000000000000000 | -│ 0 │ {:D} │ 0 | -│ 0 │ {:D16} │ 0000000000000000 | -│ 0 │ {:e} │ 0.000000e+00 | -│ 0 │ {:E} │ 0.000000E+00 | -│ 0 │ {:f} │ 0.00 | -│ 0 │ {:f4} │ 0.0000 | -│ 0 │ {:F} │ 0.00 | -│ 0 │ {:F4} │ 0.0000 | -│ 0 │ {:g} │ 0 | -│ 0 │ {:G} │ 0 | -│ 0 │ {:o} │ 0 | -│ 0 │ {:o16} │ 0000000000000000 | -│ 0 │ {:O} │ 0 | -│ 0 │ {:O16} │ 0000000000000000 | -│ 0 │ {:n} │ 0.00 | -│ 0 │ {:N} │ 0.00 | -│ 0 │ {:p} │ 0.00 % | -│ 0 │ {:P} │ 0.00 % | -│ 0 │ {:x} │ 0 | -│ 0 │ {:x16} │ 0000000000000000 | -│ 0 │ {:X} │ 0 | -│ 0 │ {:X16} │ 0000000000000000 | +│ 0 │ {} │ 0 │ +│ 0 │ {:b} │ 0 │ +│ 0 │ {:b32} │ 00000000000000000000000000000000 │ +│ 0 │ {:B} │ 0 │ +│ 0 │ {:B32} │ 00000000000000000000000000000000 │ +│ 0 │ {:c} │ $0.00 │ +│ 0 │ {:C} │ $0.00 │ +│ 0 │ {:d} │ 0 │ +│ 0 │ {:d16} │ 0000000000000000 │ +│ 0 │ {:D} │ 0 │ +│ 0 │ {:D16} │ 0000000000000000 │ +│ 0 │ {:e} │ 0.000000e+00 │ +│ 0 │ {:E} │ 0.000000E+00 │ +│ 0 │ {:f} │ 0.00 │ +│ 0 │ {:f4} │ 0.0000 │ +│ 0 │ {:F} │ 0.00 │ +│ 0 │ {:F4} │ 0.0000 │ +│ 0 │ {:g} │ 0 │ +│ 0 │ {:G} │ 0 │ +│ 0 │ {:o} │ 0 │ +│ 0 │ {:o16} │ 0000000000000000 │ +│ 0 │ {:O} │ 0 │ +│ 0 │ {:O16} │ 0000000000000000 │ +│ 0 │ {:n} │ 0.00 │ +│ 0 │ {:N} │ 0.00 │ +│ 0 │ {:p} │ 0.00 % │ +│ 0 │ {:P} │ 0.00 % │ +│ 0 │ {:x} │ 0 │ +│ 0 │ {:x16} │ 0000000000000000 │ +│ 0 │ {:X} │ 0 │ +│ 0 │ {:X16} │ 0000000000000000 │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 42 │ {} │ 42 | -│ 42 │ {:b} │ 101010 | -│ 42 │ {:b32} │ 00000000000000000000000000101010 | -│ 42 │ {:B} │ 101010 | -│ 42 │ {:B32} │ 00000000000000000000000000101010 | -│ 42 │ {:c} │ $42.00 | -│ 42 │ {:C} │ $42.00 | -│ 42 │ {:d} │ 42 | -│ 42 │ {:d16} │ 0000000000000042 | -│ 42 │ {:D} │ 42 | -│ 42 │ {:D16} │ 0000000000000042 | -│ 42 │ {:e} │ 4.200000e+01 | -│ 42 │ {:E} │ 4.200000E+01 | -│ 42 │ {:f} │ 42.00 | -│ 42 │ {:f4} │ 42.0000 | -│ 42 │ {:F} │ 42.00 | -│ 42 │ {:F4} │ 42.0000 | -│ 42 │ {:g} │ 42 | -│ 42 │ {:G} │ 42 | -│ 42 │ {:o} │ 52 | -│ 42 │ {:o16} │ 0000000000000052 | -│ 42 │ {:O} │ 52 | -│ 42 │ {:O16} │ 0000000000000052 | -│ 42 │ {:n} │ 42.00 | -│ 42 │ {:N} │ 42.00 | -│ 42 │ {:p} │ 4200.00 % | -│ 42 │ {:P} │ 4200.00 % | -│ 42 │ {:x} │ 2a | -│ 42 │ {:x16} │ 000000000000002a | -│ 42 │ {:X} │ 2A | -│ 42 │ {:X16} │ 000000000000002A | +│ 42 │ {} │ 42 │ +│ 42 │ {:b} │ 101010 │ +│ 42 │ {:b32} │ 00000000000000000000000000101010 │ +│ 42 │ {:B} │ 101010 │ +│ 42 │ {:B32} │ 00000000000000000000000000101010 │ +│ 42 │ {:c} │ $42.00 │ +│ 42 │ {:C} │ $42.00 │ +│ 42 │ {:d} │ 42 │ +│ 42 │ {:d16} │ 0000000000000042 │ +│ 42 │ {:D} │ 42 │ +│ 42 │ {:D16} │ 0000000000000042 │ +│ 42 │ {:e} │ 4.200000e+01 │ +│ 42 │ {:E} │ 4.200000E+01 │ +│ 42 │ {:f} │ 42.00 │ +│ 42 │ {:f4} │ 42.0000 │ +│ 42 │ {:F} │ 42.00 │ +│ 42 │ {:F4} │ 42.0000 │ +│ 42 │ {:g} │ 42 │ +│ 42 │ {:G} │ 42 │ +│ 42 │ {:o} │ 52 │ +│ 42 │ {:o16} │ 0000000000000052 │ +│ 42 │ {:O} │ 52 │ +│ 42 │ {:O16} │ 0000000000000052 │ +│ 42 │ {:n} │ 42.00 │ +│ 42 │ {:N} │ 42.00 │ +│ 42 │ {:p} │ 4200.00 % │ +│ 42 │ {:P} │ 4200.00 % │ +│ 42 │ {:x} │ 2a │ +│ 42 │ {:x16} │ 000000000000002a │ +│ 42 │ {:X} │ 2A │ +│ 42 │ {:X16} │ 000000000000002A │ ├───────────┼────────────┼──────────────────────────────────┤ -│ 123456789 │ {} │ 123456789 | -│ 123456789 │ {:b} │ 111010110111100110100010101 | -│ 123456789 │ {:b32} │ 00000111010110111100110100010101 | -│ 123456789 │ {:B} │ 111010110111100110100010101 | -│ 123456789 │ {:B32} │ 00000111010110111100110100010101 | -│ 123456789 │ {:c} │ $123,456,789.00 | -│ 123456789 │ {:C} │ $123,456,789.00 | -│ 123456789 │ {:d} │ 123456789 | -│ 123456789 │ {:d16} │ 0000000123456789 | -│ 123456789 │ {:D} │ 123456789 | -│ 123456789 │ {:D16} │ 0000000123456789 | -│ 123456789 │ {:e} │ 1.234568e+08 | -│ 123456789 │ {:E} │ 1.234568E+08 | -│ 123456789 │ {:f} │ 123456789.00 | -│ 123456789 │ {:f4} │ 123456789.0000 | -│ 123456789 │ {:F} │ 123456789.00 | -│ 123456789 │ {:F4} │ 123456789.0000 | -│ 123456789 │ {:g} │ 123456789 | -│ 123456789 │ {:G} │ 123456789 | -│ 123456789 │ {:o} │ 726746425 | -│ 123456789 │ {:o16} │ 0000000726746425 | -│ 123456789 │ {:O} │ 726746425 | -│ 123456789 │ {:O16} │ 0000000726746425 | -│ 123456789 │ {:n} │ 123,456,789.00 | -│ 123456789 │ {:N} │ 123,456,789.00 | -│ 123456789 │ {:p} │ 12345678900.00 % | -│ 123456789 │ {:P} │ 12345678900.00 % | -│ 123456789 │ {:x} │ 75bcd15 | -│ 123456789 │ {:x16} │ 00000000075bcd15 | -│ 123456789 │ {:X} │ 75BCD15 | -│ 123456789 │ {:X16} │ 00000000075BCD15 | +│ 123456789 │ {} │ 123456789 │ +│ 123456789 │ {:b} │ 111010110111100110100010101 │ +│ 123456789 │ {:b32} │ 00000111010110111100110100010101 │ +│ 123456789 │ {:B} │ 111010110111100110100010101 │ +│ 123456789 │ {:B32} │ 00000111010110111100110100010101 │ +│ 123456789 │ {:c} │ $123,456,789.00 │ +│ 123456789 │ {:C} │ $123,456,789.00 │ +│ 123456789 │ {:d} │ 123456789 │ +│ 123456789 │ {:d16} │ 0000000123456789 │ +│ 123456789 │ {:D} │ 123456789 │ +│ 123456789 │ {:D16} │ 0000000123456789 │ +│ 123456789 │ {:e} │ 1.234568e+08 │ +│ 123456789 │ {:E} │ 1.234568E+08 │ +│ 123456789 │ {:f} │ 123456789.00 │ +│ 123456789 │ {:f4} │ 123456789.0000 │ +│ 123456789 │ {:F} │ 123456789.00 │ +│ 123456789 │ {:F4} │ 123456789.0000 │ +│ 123456789 │ {:g} │ 123456789 │ +│ 123456789 │ {:G} │ 123456789 │ +│ 123456789 │ {:o} │ 726746425 │ +│ 123456789 │ {:o16} │ 0000000726746425 │ +│ 123456789 │ {:O} │ 726746425 │ +│ 123456789 │ {:O16} │ 0000000726746425 │ +│ 123456789 │ {:n} │ 123,456,789.00 │ +│ 123456789 │ {:N} │ 123,456,789.00 │ +│ 123456789 │ {:p} │ 12345678900.00 % │ +│ 123456789 │ {:P} │ 12345678900.00 % │ +│ 123456789 │ {:x} │ 75bcd15 │ +│ 123456789 │ {:x16} │ 00000000075bcd15 │ +│ 123456789 │ {:X} │ 75BCD15 │ +│ 123456789 │ {:X16} │ 00000000075BCD15 │ └───────────┴────────────┴──────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_numeric/src/format_numeric.cpp b/examples/xtd.core.examples/format/format_numeric/src/format_numeric.cpp index b1f4ad9409f9..bf12dff8cbe0 100644 --- a/examples/xtd.core.examples/format/format_numeric/src/format_numeric.cpp +++ b/examples/xtd.core.examples/format/format_numeric/src/format_numeric.cpp @@ -51,7 +51,6 @@ auto print_number(const string& text, int value, cap c) { console::out << "└───────────┴────────────┴──────────────────────────────────┘" << environment::new_line; } - auto main() -> int { std::locale::global(std::locale {"en_US.UTF-8"}); // change to us for currency print_number("0", 0, cap::title); diff --git a/examples/xtd.core.examples/format/format_system_clock/README.md b/examples/xtd.core.examples/format/format_system_clock/README.md index 28f916df0553..2cb2f1c5eccd 100644 --- a/examples/xtd.core.examples/format/format_system_clock/README.md +++ b/examples/xtd.core.examples/format/format_system_clock/README.md @@ -22,215 +22,215 @@ xtdc run ┌──────────────────────────────────┬────────────┬──────────────────────────────────────────┐ │ date_time │ format │ representation │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ 0 │ {} │ Thu Jan 1 01:00:00 1970 | -│ 0 │ {:a} │ AM | -│ 0 │ {:b} │ 000 | -│ 0 │ {:B} │ 0 | -│ 0 │ {:d} │ 01/01/1970 | -│ 0 │ {:D} │ 1/01/1970 | -│ 0 │ {:f} │ Thu Jan 1 01:00:00 1970 | -│ 0 │ {:F} │ Thu Jan 1 01:00:00 1970 | -│ 0 │ {:g} │ Thu Jan 1 01:00:00 1970 | -│ 0 │ {:G} │ Thu Jan 1 01:00:00 1970 | -│ 0 │ {:h} │ Thu | -│ 0 │ {:H} │ Thursday | -│ 0 │ {:i} │ 01 | -│ 0 │ {:I} │ 1 | -│ 0 │ {:j} │ Jan | -│ 0 │ {:J} │ January | -│ 0 │ {:k} │ 01 | -│ 0 │ {:K} │ 1 | -│ 0 │ {:l} │ 70 | -│ 0 │ {:L} │ 1970 | -│ 0 │ {:m} │ January 1 | -│ 0 │ {:M} │ January 1 | -│ 0 │ {:n} │ Thursday, 1 January 1970 | -│ 0 │ {:n} │ Thursday, 1 January 1970 1:00:00 | -│ 0 │ {:o} │ 1 January 1970 | -│ 0 │ {:O} │ 1 January 1970 | -│ 0 │ {:s} │ 1970-01-01T01:00:00.0000000 | -│ 0 │ {:t} │ 01:00:00 | -│ 0 │ {:T} │ 1:00:00 | -│ 0 │ {:u} │ 1970-01-01 01:00:00 | -│ 0 │ {:U} │ Thursday, 1 January 1970 1:00:00 | -│ 0 │ {:v} │ 01:00 | -│ 0 │ {:V} │ 1:00 | -│ 0 │ {:w} │ 01} | -│ 0 │ {:W} │ 1 | -│ 0 │ {:x} │ 01 | -│ 0 │ {:X} │ 1 | -│ 0 │ {:y} │ January 70 | -│ 0 │ {:Y} │ January 1970 | -│ 0 │ {:z} │ CET | -│ 0 │ {:Z} │ CET | +│ 0 │ {} │ Thu Jan 1 01:00:00 1970 │ +│ 0 │ {:a} │ AM │ +│ 0 │ {:b} │ 000 │ +│ 0 │ {:B} │ 0 │ +│ 0 │ {:d} │ 01/01/1970 │ +│ 0 │ {:D} │ 1/01/1970 │ +│ 0 │ {:f} │ Thu Jan 1 01:00:00 1970 │ +│ 0 │ {:F} │ Thu Jan 1 01:00:00 1970 │ +│ 0 │ {:g} │ Thu Jan 1 01:00:00 1970 │ +│ 0 │ {:G} │ Thu Jan 1 01:00:00 1970 │ +│ 0 │ {:h} │ Thu │ +│ 0 │ {:H} │ Thursday │ +│ 0 │ {:i} │ 01 │ +│ 0 │ {:I} │ 1 │ +│ 0 │ {:j} │ Jan │ +│ 0 │ {:J} │ January │ +│ 0 │ {:k} │ 01 │ +│ 0 │ {:K} │ 1 │ +│ 0 │ {:l} │ 70 │ +│ 0 │ {:L} │ 1970 │ +│ 0 │ {:m} │ January 1 │ +│ 0 │ {:M} │ January 1 │ +│ 0 │ {:n} │ Thursday, 1 January 1970 │ +│ 0 │ {:n} │ Thursday, 1 January 1970 1:00:00 │ +│ 0 │ {:o} │ 1 January 1970 │ +│ 0 │ {:O} │ 1 January 1970 │ +│ 0 │ {:s} │ 1970-01-01T01:00:00.0000000 │ +│ 0 │ {:t} │ 01:00:00 │ +│ 0 │ {:T} │ 1:00:00 │ +│ 0 │ {:u} │ 1970-01-01 01:00:00 │ +│ 0 │ {:U} │ Thursday, 1 January 1970 1:00:00 │ +│ 0 │ {:v} │ 01:00 │ +│ 0 │ {:V} │ 1:00 │ +│ 0 │ {:w} │ 01} │ +│ 0 │ {:W} │ 1 │ +│ 0 │ {:x} │ 01 │ +│ 0 │ {:X} │ 1 │ +│ 0 │ {:y} │ January 70 │ +│ 0 │ {:Y} │ January 1970 │ +│ 0 │ {:z} │ CET │ +│ 0 │ {:Z} │ CET │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ 12345678912 │ {} │ Tue Mar 21 20:15:12 2361 | -│ 12345678912 │ {:a} │ PM | -│ 12345678912 │ {:b} │ 3585 | -│ 12345678912 │ {:B} │ 3585 | -│ 12345678912 │ {:d} │ 03/21/2361 | -│ 12345678912 │ {:D} │ 3/21/2361 | -│ 12345678912 │ {:f} │ Tue Mar 21 20:15:12 2361 | -│ 12345678912 │ {:F} │ Tue Mar 21 20:15:12 2361 | -│ 12345678912 │ {:g} │ Tue Mar 21 20:15:12 2361 | -│ 12345678912 │ {:G} │ Tue Mar 21 20:15:12 2361 | -│ 12345678912 │ {:h} │ Tue | -│ 12345678912 │ {:H} │ Tuesday | -│ 12345678912 │ {:i} │ 21 | -│ 12345678912 │ {:I} │ 21 | -│ 12345678912 │ {:j} │ Mar | -│ 12345678912 │ {:J} │ March | -│ 12345678912 │ {:k} │ 03 | -│ 12345678912 │ {:K} │ 3 | -│ 12345678912 │ {:l} │ 61 | -│ 12345678912 │ {:L} │ 2361 | -│ 12345678912 │ {:m} │ March 21 | -│ 12345678912 │ {:M} │ March 21 | -│ 12345678912 │ {:n} │ Tuesday, 21 March 2361 | -│ 12345678912 │ {:n} │ Tuesday, 21 March 2361 20:15:12 | -│ 12345678912 │ {:o} │ 21 March 2361 | -│ 12345678912 │ {:O} │ 21 March 2361 | -│ 12345678912 │ {:s} │ 2361-03-21T20:15:12.-709551616 | -│ 12345678912 │ {:t} │ 20:15:12 | -│ 12345678912 │ {:T} │ 20:15:12 | -│ 12345678912 │ {:u} │ 2361-03-21 20:15:12 | -│ 12345678912 │ {:U} │ Tuesday, 21 March 2361 20:15:12 | -│ 12345678912 │ {:v} │ 20:15 | -│ 12345678912 │ {:V} │ 20:15 | -│ 12345678912 │ {:w} │ 20} | -│ 12345678912 │ {:W} │ 20 | -│ 12345678912 │ {:x} │ 08 | -│ 12345678912 │ {:X} │ 8 | -│ 12345678912 │ {:y} │ March 61 | -│ 12345678912 │ {:Y} │ March 2361 | -│ 12345678912 │ {:z} │ CET | -│ 12345678912 │ {:Z} │ CET | +│ 12345678912 │ {} │ Tue Mar 21 20:15:12 2361 │ +│ 12345678912 │ {:a} │ PM │ +│ 12345678912 │ {:b} │ 3585 │ +│ 12345678912 │ {:B} │ 3585 │ +│ 12345678912 │ {:d} │ 03/21/2361 │ +│ 12345678912 │ {:D} │ 3/21/2361 │ +│ 12345678912 │ {:f} │ Tue Mar 21 20:15:12 2361 │ +│ 12345678912 │ {:F} │ Tue Mar 21 20:15:12 2361 │ +│ 12345678912 │ {:g} │ Tue Mar 21 20:15:12 2361 │ +│ 12345678912 │ {:G} │ Tue Mar 21 20:15:12 2361 │ +│ 12345678912 │ {:h} │ Tue │ +│ 12345678912 │ {:H} │ Tuesday │ +│ 12345678912 │ {:i} │ 21 │ +│ 12345678912 │ {:I} │ 21 │ +│ 12345678912 │ {:j} │ Mar │ +│ 12345678912 │ {:J} │ March │ +│ 12345678912 │ {:k} │ 03 │ +│ 12345678912 │ {:K} │ 3 │ +│ 12345678912 │ {:l} │ 61 │ +│ 12345678912 │ {:L} │ 2361 │ +│ 12345678912 │ {:m} │ March 21 │ +│ 12345678912 │ {:M} │ March 21 │ +│ 12345678912 │ {:n} │ Tuesday, 21 March 2361 │ +│ 12345678912 │ {:n} │ Tuesday, 21 March 2361 20:15:12 │ +│ 12345678912 │ {:o} │ 21 March 2361 │ +│ 12345678912 │ {:O} │ 21 March 2361 │ +│ 12345678912 │ {:s} │ 2361-03-21T20:15:12.-709551616 │ +│ 12345678912 │ {:t} │ 20:15:12 │ +│ 12345678912 │ {:T} │ 20:15:12 │ +│ 12345678912 │ {:u} │ 2361-03-21 20:15:12 │ +│ 12345678912 │ {:U} │ Tuesday, 21 March 2361 20:15:12 │ +│ 12345678912 │ {:v} │ 20:15 │ +│ 12345678912 │ {:V} │ 20:15 │ +│ 12345678912 │ {:w} │ 20} │ +│ 12345678912 │ {:W} │ 20 │ +│ 12345678912 │ {:x} │ 08 │ +│ 12345678912 │ {:X} │ 8 │ +│ 12345678912 │ {:y} │ March 61 │ +│ 12345678912 │ {:Y} │ March 2361 │ +│ 12345678912 │ {:z} │ CET │ +│ 12345678912 │ {:Z} │ CET │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:a} │ AM | -│ make_time(1971, 1, 5) │ {:b} │ 000 | -│ make_time(1971, 1, 5) │ {:B} │ 0 | -│ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 | -│ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 | -│ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:h} │ Tue | -│ make_time(1971, 1, 5) │ {:H} │ Tuesday | -│ make_time(1971, 1, 5) │ {:i} │ 05 | -│ make_time(1971, 1, 5) │ {:I} │ 5 | -│ make_time(1971, 1, 5) │ {:j} │ Jan | -│ make_time(1971, 1, 5) │ {:J} │ January | -│ make_time(1971, 1, 5) │ {:k} │ 01 | -│ make_time(1971, 1, 5) │ {:K} │ 1 | -│ make_time(1971, 1, 5) │ {:l} │ 71 | -│ make_time(1971, 1, 5) │ {:L} │ 1971 | -│ make_time(1971, 1, 5) │ {:m} │ January 5 | -│ make_time(1971, 1, 5) │ {:M} │ January 5 | -│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 | -│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 | -│ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 | -│ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 | -│ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 | -│ make_time(1971, 1, 5) │ {:t} │ 00:00:00 | -│ make_time(1971, 1, 5) │ {:T} │ 0:00:00 | -│ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 | -│ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 | -│ make_time(1971, 1, 5) │ {:v} │ 00:00 | -│ make_time(1971, 1, 5) │ {:V} │ 0:00 | -│ make_time(1971, 1, 5) │ {:w} │ 00} | -│ make_time(1971, 1, 5) │ {:W} │ 0 | -│ make_time(1971, 1, 5) │ {:x} │ 00 | -│ make_time(1971, 1, 5) │ {:X} │ 0 | -│ make_time(1971, 1, 5) │ {:y} │ January 71 | -│ make_time(1971, 1, 5) │ {:Y} │ January 1971 | -│ make_time(1971, 1, 5) │ {:z} │ CET | -│ make_time(1971, 1, 5) │ {:Z} │ CET | +│ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:a} │ AM │ +│ make_time(1971, 1, 5) │ {:b} │ 000 │ +│ make_time(1971, 1, 5) │ {:B} │ 0 │ +│ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 │ +│ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 │ +│ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:h} │ Tue │ +│ make_time(1971, 1, 5) │ {:H} │ Tuesday │ +│ make_time(1971, 1, 5) │ {:i} │ 05 │ +│ make_time(1971, 1, 5) │ {:I} │ 5 │ +│ make_time(1971, 1, 5) │ {:j} │ Jan │ +│ make_time(1971, 1, 5) │ {:J} │ January │ +│ make_time(1971, 1, 5) │ {:k} │ 01 │ +│ make_time(1971, 1, 5) │ {:K} │ 1 │ +│ make_time(1971, 1, 5) │ {:l} │ 71 │ +│ make_time(1971, 1, 5) │ {:L} │ 1971 │ +│ make_time(1971, 1, 5) │ {:m} │ January 5 │ +│ make_time(1971, 1, 5) │ {:M} │ January 5 │ +│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 │ +│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 │ +│ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 │ +│ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 │ +│ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 │ +│ make_time(1971, 1, 5) │ {:t} │ 00:00:00 │ +│ make_time(1971, 1, 5) │ {:T} │ 0:00:00 │ +│ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 │ +│ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 │ +│ make_time(1971, 1, 5) │ {:v} │ 00:00 │ +│ make_time(1971, 1, 5) │ {:V} │ 0:00 │ +│ make_time(1971, 1, 5) │ {:w} │ 00} │ +│ make_time(1971, 1, 5) │ {:W} │ 0 │ +│ make_time(1971, 1, 5) │ {:x} │ 00 │ +│ make_time(1971, 1, 5) │ {:X} │ 0 │ +│ make_time(1971, 1, 5) │ {:y} │ January 71 │ +│ make_time(1971, 1, 5) │ {:Y} │ January 1971 │ +│ make_time(1971, 1, 5) │ {:z} │ CET │ +│ make_time(1971, 1, 5) │ {:Z} │ CET │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET | +│ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ now │ {} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:a} │ PM | -│ now │ {:b} │ 163 | -│ now │ {:B} │ 163 | -│ now │ {:d} │ 12/15/2024 | -│ now │ {:D} │ 12/15/2024 | -│ now │ {:f} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:F} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:g} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:G} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:h} │ Sun | -│ now │ {:H} │ Sunday | -│ now │ {:i} │ 15 | -│ now │ {:I} │ 15 | -│ now │ {:j} │ Dec | -│ now │ {:J} │ December | -│ now │ {:k} │ 12 | -│ now │ {:K} │ 12 | -│ now │ {:l} │ 24 | -│ now │ {:L} │ 2024 | -│ now │ {:m} │ December 15 | -│ now │ {:M} │ December 15 | -│ now │ {:n} │ Sunday, 15 December 2024 | -│ now │ {:n} │ Sunday, 15 December 2024 13:41:38 | -│ now │ {:o} │ 15 December 2024 | -│ now │ {:O} │ 15 December 2024 | -│ now │ {:s} │ 2024-12-15T13:41:38.163216000 | -│ now │ {:t} │ 13:41:38 | -│ now │ {:T} │ 13:41:38 | -│ now │ {:u} │ 2024-12-15 13:41:38 | -│ now │ {:U} │ Sunday, 15 December 2024 13:41:38 | -│ now │ {:v} │ 13:41 | -│ now │ {:V} │ 13:41 | -│ now │ {:w} │ 13} | -│ now │ {:W} │ 13 | -│ now │ {:x} │ 01 | -│ now │ {:X} │ 1 | -│ now │ {:y} │ December 24 | -│ now │ {:Y} │ December 2024 | -│ now │ {:z} │ CET | -│ now │ {:Z} │ CET | +│ now │ {} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:a} │ PM │ +│ now │ {:b} │ 163 │ +│ now │ {:B} │ 163 │ +│ now │ {:d} │ 12/15/2024 │ +│ now │ {:D} │ 12/15/2024 │ +│ now │ {:f} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:F} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:g} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:G} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:h} │ Sun │ +│ now │ {:H} │ Sunday │ +│ now │ {:i} │ 15 │ +│ now │ {:I} │ 15 │ +│ now │ {:j} │ Dec │ +│ now │ {:J} │ December │ +│ now │ {:k} │ 12 │ +│ now │ {:K} │ 12 │ +│ now │ {:l} │ 24 │ +│ now │ {:L} │ 2024 │ +│ now │ {:m} │ December 15 │ +│ now │ {:M} │ December 15 │ +│ now │ {:n} │ Sunday, 15 December 2024 │ +│ now │ {:n} │ Sunday, 15 December 2024 13:41:38 │ +│ now │ {:o} │ 15 December 2024 │ +│ now │ {:O} │ 15 December 2024 │ +│ now │ {:s} │ 2024-12-15T13:41:38.163216000 │ +│ now │ {:t} │ 13:41:38 │ +│ now │ {:T} │ 13:41:38 │ +│ now │ {:u} │ 2024-12-15 13:41:38 │ +│ now │ {:U} │ Sunday, 15 December 2024 13:41:38 │ +│ now │ {:v} │ 13:41 │ +│ now │ {:V} │ 13:41 │ +│ now │ {:w} │ 13} │ +│ now │ {:W} │ 13 │ +│ now │ {:x} │ 01 │ +│ now │ {:X} │ 1 │ +│ now │ {:y} │ December 24 │ +│ now │ {:Y} │ December 2024 │ +│ now │ {:z} │ CET │ +│ now │ {:Z} │ CET │ └──────────────────────────────────┴────────────┴──────────────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_system_clock/src/format_system_clock.cpp b/examples/xtd.core.examples/format/format_system_clock/src/format_system_clock.cpp index ac73e10d1124..338af30c42af 100644 --- a/examples/xtd.core.examples/format/format_system_clock/src/format_system_clock.cpp +++ b/examples/xtd.core.examples/format/format_system_clock/src/format_system_clock.cpp @@ -34,47 +34,47 @@ auto print_system_clock(const string& text, const std::chrono::time_point int { // ┌──────────────────────────────────┬────────────┬──────────────────────────────────────────┐ // │ date_time │ format │ representation │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ 0 │ {} │ Thu Jan 1 01:00:00 1970 | -// │ 0 │ {:a} │ AM | -// │ 0 │ {:b} │ 000 | -// │ 0 │ {:B} │ 0 | -// │ 0 │ {:d} │ 01/01/1970 | -// │ 0 │ {:D} │ 1/01/1970 | -// │ 0 │ {:f} │ Thu Jan 1 01:00:00 1970 | -// │ 0 │ {:F} │ Thu Jan 1 01:00:00 1970 | -// │ 0 │ {:g} │ Thu Jan 1 01:00:00 1970 | -// │ 0 │ {:G} │ Thu Jan 1 01:00:00 1970 | -// │ 0 │ {:h} │ Thu | -// │ 0 │ {:H} │ Thursday | -// │ 0 │ {:i} │ 01 | -// │ 0 │ {:I} │ 1 | -// │ 0 │ {:j} │ Jan | -// │ 0 │ {:J} │ January | -// │ 0 │ {:k} │ 01 | -// │ 0 │ {:K} │ 1 | -// │ 0 │ {:l} │ 70 | -// │ 0 │ {:L} │ 1970 | -// │ 0 │ {:m} │ January 1 | -// │ 0 │ {:M} │ January 1 | -// │ 0 │ {:n} │ Thursday, 1 January 1970 | -// │ 0 │ {:n} │ Thursday, 1 January 1970 1:00:00 | -// │ 0 │ {:o} │ 1 January 1970 | -// │ 0 │ {:O} │ 1 January 1970 | -// │ 0 │ {:s} │ 1970-01-01T01:00:00.0000000 | -// │ 0 │ {:t} │ 01:00:00 | -// │ 0 │ {:T} │ 1:00:00 | -// │ 0 │ {:u} │ 1970-01-01 01:00:00 | -// │ 0 │ {:U} │ Thursday, 1 January 1970 1:00:00 | -// │ 0 │ {:v} │ 01:00 | -// │ 0 │ {:V} │ 1:00 | -// │ 0 │ {:w} │ 01} | -// │ 0 │ {:W} │ 1 | -// │ 0 │ {:x} │ 01 | -// │ 0 │ {:X} │ 1 | -// │ 0 │ {:y} │ January 70 | -// │ 0 │ {:Y} │ January 1970 | -// │ 0 │ {:z} │ CET | -// │ 0 │ {:Z} │ CET | +// │ 0 │ {} │ Thu Jan 1 01:00:00 1970 │ +// │ 0 │ {:a} │ AM │ +// │ 0 │ {:b} │ 000 │ +// │ 0 │ {:B} │ 0 │ +// │ 0 │ {:d} │ 01/01/1970 │ +// │ 0 │ {:D} │ 1/01/1970 │ +// │ 0 │ {:f} │ Thu Jan 1 01:00:00 1970 │ +// │ 0 │ {:F} │ Thu Jan 1 01:00:00 1970 │ +// │ 0 │ {:g} │ Thu Jan 1 01:00:00 1970 │ +// │ 0 │ {:G} │ Thu Jan 1 01:00:00 1970 │ +// │ 0 │ {:h} │ Thu │ +// │ 0 │ {:H} │ Thursday │ +// │ 0 │ {:i} │ 01 │ +// │ 0 │ {:I} │ 1 │ +// │ 0 │ {:j} │ Jan │ +// │ 0 │ {:J} │ January │ +// │ 0 │ {:k} │ 01 │ +// │ 0 │ {:K} │ 1 │ +// │ 0 │ {:l} │ 70 │ +// │ 0 │ {:L} │ 1970 │ +// │ 0 │ {:m} │ January 1 │ +// │ 0 │ {:M} │ January 1 │ +// │ 0 │ {:n} │ Thursday, 1 January 1970 │ +// │ 0 │ {:n} │ Thursday, 1 January 1970 1:00:00 │ +// │ 0 │ {:o} │ 1 January 1970 │ +// │ 0 │ {:O} │ 1 January 1970 │ +// │ 0 │ {:s} │ 1970-01-01T01:00:00.0000000 │ +// │ 0 │ {:t} │ 01:00:00 │ +// │ 0 │ {:T} │ 1:00:00 │ +// │ 0 │ {:u} │ 1970-01-01 01:00:00 │ +// │ 0 │ {:U} │ Thursday, 1 January 1970 1:00:00 │ +// │ 0 │ {:v} │ 01:00 │ +// │ 0 │ {:V} │ 1:00 │ +// │ 0 │ {:w} │ 01} │ +// │ 0 │ {:W} │ 1 │ +// │ 0 │ {:x} │ 01 │ +// │ 0 │ {:X} │ 1 │ +// │ 0 │ {:y} │ January 70 │ +// │ 0 │ {:Y} │ January 1970 │ +// │ 0 │ {:z} │ CET │ +// │ 0 │ {:Z} │ CET │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ 12345678912 │ {} │ Tue Mar 21 20:15:12 2361 | -// │ 12345678912 │ {:a} │ PM | -// │ 12345678912 │ {:b} │ 3585 | -// │ 12345678912 │ {:B} │ 3585 | -// │ 12345678912 │ {:d} │ 03/21/2361 | -// │ 12345678912 │ {:D} │ 3/21/2361 | -// │ 12345678912 │ {:f} │ Tue Mar 21 20:15:12 2361 | -// │ 12345678912 │ {:F} │ Tue Mar 21 20:15:12 2361 | -// │ 12345678912 │ {:g} │ Tue Mar 21 20:15:12 2361 | -// │ 12345678912 │ {:G} │ Tue Mar 21 20:15:12 2361 | -// │ 12345678912 │ {:h} │ Tue | -// │ 12345678912 │ {:H} │ Tuesday | -// │ 12345678912 │ {:i} │ 21 | -// │ 12345678912 │ {:I} │ 21 | -// │ 12345678912 │ {:j} │ Mar | -// │ 12345678912 │ {:J} │ March | -// │ 12345678912 │ {:k} │ 03 | -// │ 12345678912 │ {:K} │ 3 | -// │ 12345678912 │ {:l} │ 61 | -// │ 12345678912 │ {:L} │ 2361 | -// │ 12345678912 │ {:m} │ March 21 | -// │ 12345678912 │ {:M} │ March 21 | -// │ 12345678912 │ {:n} │ Tuesday, 21 March 2361 | -// │ 12345678912 │ {:n} │ Tuesday, 21 March 2361 20:15:12 | -// │ 12345678912 │ {:o} │ 21 March 2361 | -// │ 12345678912 │ {:O} │ 21 March 2361 | -// │ 12345678912 │ {:s} │ 2361-03-21T20:15:12.-709551616 | -// │ 12345678912 │ {:t} │ 20:15:12 | -// │ 12345678912 │ {:T} │ 20:15:12 | -// │ 12345678912 │ {:u} │ 2361-03-21 20:15:12 | -// │ 12345678912 │ {:U} │ Tuesday, 21 March 2361 20:15:12 | -// │ 12345678912 │ {:v} │ 20:15 | -// │ 12345678912 │ {:V} │ 20:15 | -// │ 12345678912 │ {:w} │ 20} | -// │ 12345678912 │ {:W} │ 20 | -// │ 12345678912 │ {:x} │ 08 | -// │ 12345678912 │ {:X} │ 8 | -// │ 12345678912 │ {:y} │ March 61 | -// │ 12345678912 │ {:Y} │ March 2361 | -// │ 12345678912 │ {:z} │ CET | -// │ 12345678912 │ {:Z} │ CET | +// │ 12345678912 │ {} │ Tue Mar 21 20:15:12 2361 │ +// │ 12345678912 │ {:a} │ PM │ +// │ 12345678912 │ {:b} │ 3585 │ +// │ 12345678912 │ {:B} │ 3585 │ +// │ 12345678912 │ {:d} │ 03/21/2361 │ +// │ 12345678912 │ {:D} │ 3/21/2361 │ +// │ 12345678912 │ {:f} │ Tue Mar 21 20:15:12 2361 │ +// │ 12345678912 │ {:F} │ Tue Mar 21 20:15:12 2361 │ +// │ 12345678912 │ {:g} │ Tue Mar 21 20:15:12 2361 │ +// │ 12345678912 │ {:G} │ Tue Mar 21 20:15:12 2361 │ +// │ 12345678912 │ {:h} │ Tue │ +// │ 12345678912 │ {:H} │ Tuesday │ +// │ 12345678912 │ {:i} │ 21 │ +// │ 12345678912 │ {:I} │ 21 │ +// │ 12345678912 │ {:j} │ Mar │ +// │ 12345678912 │ {:J} │ March │ +// │ 12345678912 │ {:k} │ 03 │ +// │ 12345678912 │ {:K} │ 3 │ +// │ 12345678912 │ {:l} │ 61 │ +// │ 12345678912 │ {:L} │ 2361 │ +// │ 12345678912 │ {:m} │ March 21 │ +// │ 12345678912 │ {:M} │ March 21 │ +// │ 12345678912 │ {:n} │ Tuesday, 21 March 2361 │ +// │ 12345678912 │ {:n} │ Tuesday, 21 March 2361 20:15:12 │ +// │ 12345678912 │ {:o} │ 21 March 2361 │ +// │ 12345678912 │ {:O} │ 21 March 2361 │ +// │ 12345678912 │ {:s} │ 2361-03-21T20:15:12.-709551616 │ +// │ 12345678912 │ {:t} │ 20:15:12 │ +// │ 12345678912 │ {:T} │ 20:15:12 │ +// │ 12345678912 │ {:u} │ 2361-03-21 20:15:12 │ +// │ 12345678912 │ {:U} │ Tuesday, 21 March 2361 20:15:12 │ +// │ 12345678912 │ {:v} │ 20:15 │ +// │ 12345678912 │ {:V} │ 20:15 │ +// │ 12345678912 │ {:w} │ 20} │ +// │ 12345678912 │ {:W} │ 20 │ +// │ 12345678912 │ {:x} │ 08 │ +// │ 12345678912 │ {:X} │ 8 │ +// │ 12345678912 │ {:y} │ March 61 │ +// │ 12345678912 │ {:Y} │ March 2361 │ +// │ 12345678912 │ {:z} │ CET │ +// │ 12345678912 │ {:Z} │ CET │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:a} │ AM | -// │ make_time(1971, 1, 5) │ {:b} │ 000 | -// │ make_time(1971, 1, 5) │ {:B} │ 0 | -// │ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 | -// │ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 | -// │ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:h} │ Tue | -// │ make_time(1971, 1, 5) │ {:H} │ Tuesday | -// │ make_time(1971, 1, 5) │ {:i} │ 05 | -// │ make_time(1971, 1, 5) │ {:I} │ 5 | -// │ make_time(1971, 1, 5) │ {:j} │ Jan | -// │ make_time(1971, 1, 5) │ {:J} │ January | -// │ make_time(1971, 1, 5) │ {:k} │ 01 | -// │ make_time(1971, 1, 5) │ {:K} │ 1 | -// │ make_time(1971, 1, 5) │ {:l} │ 71 | -// │ make_time(1971, 1, 5) │ {:L} │ 1971 | -// │ make_time(1971, 1, 5) │ {:m} │ January 5 | -// │ make_time(1971, 1, 5) │ {:M} │ January 5 | -// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 | -// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 | -// │ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 | -// │ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 | -// │ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 | -// │ make_time(1971, 1, 5) │ {:t} │ 00:00:00 | -// │ make_time(1971, 1, 5) │ {:T} │ 0:00:00 | -// │ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 | -// │ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 | -// │ make_time(1971, 1, 5) │ {:v} │ 00:00 | -// │ make_time(1971, 1, 5) │ {:V} │ 0:00 | -// │ make_time(1971, 1, 5) │ {:w} │ 00} | -// │ make_time(1971, 1, 5) │ {:W} │ 0 | -// │ make_time(1971, 1, 5) │ {:x} │ 00 | -// │ make_time(1971, 1, 5) │ {:X} │ 0 | -// │ make_time(1971, 1, 5) │ {:y} │ January 71 | -// │ make_time(1971, 1, 5) │ {:Y} │ January 1971 | -// │ make_time(1971, 1, 5) │ {:z} │ CET | -// │ make_time(1971, 1, 5) │ {:Z} │ CET | +// │ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:a} │ AM │ +// │ make_time(1971, 1, 5) │ {:b} │ 000 │ +// │ make_time(1971, 1, 5) │ {:B} │ 0 │ +// │ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 │ +// │ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 │ +// │ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:h} │ Tue │ +// │ make_time(1971, 1, 5) │ {:H} │ Tuesday │ +// │ make_time(1971, 1, 5) │ {:i} │ 05 │ +// │ make_time(1971, 1, 5) │ {:I} │ 5 │ +// │ make_time(1971, 1, 5) │ {:j} │ Jan │ +// │ make_time(1971, 1, 5) │ {:J} │ January │ +// │ make_time(1971, 1, 5) │ {:k} │ 01 │ +// │ make_time(1971, 1, 5) │ {:K} │ 1 │ +// │ make_time(1971, 1, 5) │ {:l} │ 71 │ +// │ make_time(1971, 1, 5) │ {:L} │ 1971 │ +// │ make_time(1971, 1, 5) │ {:m} │ January 5 │ +// │ make_time(1971, 1, 5) │ {:M} │ January 5 │ +// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 │ +// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 │ +// │ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 │ +// │ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 │ +// │ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 │ +// │ make_time(1971, 1, 5) │ {:t} │ 00:00:00 │ +// │ make_time(1971, 1, 5) │ {:T} │ 0:00:00 │ +// │ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 │ +// │ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 │ +// │ make_time(1971, 1, 5) │ {:v} │ 00:00 │ +// │ make_time(1971, 1, 5) │ {:V} │ 0:00 │ +// │ make_time(1971, 1, 5) │ {:w} │ 00} │ +// │ make_time(1971, 1, 5) │ {:W} │ 0 │ +// │ make_time(1971, 1, 5) │ {:x} │ 00 │ +// │ make_time(1971, 1, 5) │ {:X} │ 0 │ +// │ make_time(1971, 1, 5) │ {:y} │ January 71 │ +// │ make_time(1971, 1, 5) │ {:Y} │ January 1971 │ +// │ make_time(1971, 1, 5) │ {:z} │ CET │ +// │ make_time(1971, 1, 5) │ {:Z} │ CET │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET | +// │ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ now │ {} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:a} │ PM | -// │ now │ {:b} │ 163 | -// │ now │ {:B} │ 163 | -// │ now │ {:d} │ 12/15/2024 | -// │ now │ {:D} │ 12/15/2024 | -// │ now │ {:f} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:F} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:g} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:G} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:h} │ Sun | -// │ now │ {:H} │ Sunday | -// │ now │ {:i} │ 15 | -// │ now │ {:I} │ 15 | -// │ now │ {:j} │ Dec | -// │ now │ {:J} │ December | -// │ now │ {:k} │ 12 | -// │ now │ {:K} │ 12 | -// │ now │ {:l} │ 24 | -// │ now │ {:L} │ 2024 | -// │ now │ {:m} │ December 15 | -// │ now │ {:M} │ December 15 | -// │ now │ {:n} │ Sunday, 15 December 2024 | -// │ now │ {:n} │ Sunday, 15 December 2024 13:41:38 | -// │ now │ {:o} │ 15 December 2024 | -// │ now │ {:O} │ 15 December 2024 | -// │ now │ {:s} │ 2024-12-15T13:41:38.163216000 | -// │ now │ {:t} │ 13:41:38 | -// │ now │ {:T} │ 13:41:38 | -// │ now │ {:u} │ 2024-12-15 13:41:38 | -// │ now │ {:U} │ Sunday, 15 December 2024 13:41:38 | -// │ now │ {:v} │ 13:41 | -// │ now │ {:V} │ 13:41 | -// │ now │ {:w} │ 13} | -// │ now │ {:W} │ 13 | -// │ now │ {:x} │ 01 | -// │ now │ {:X} │ 1 | -// │ now │ {:y} │ December 24 | -// │ now │ {:Y} │ December 2024 | -// │ now │ {:z} │ CET | -// │ now │ {:Z} │ CET | +// │ now │ {} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:a} │ PM │ +// │ now │ {:b} │ 163 │ +// │ now │ {:B} │ 163 │ +// │ now │ {:d} │ 12/15/2024 │ +// │ now │ {:D} │ 12/15/2024 │ +// │ now │ {:f} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:F} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:g} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:G} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:h} │ Sun │ +// │ now │ {:H} │ Sunday │ +// │ now │ {:i} │ 15 │ +// │ now │ {:I} │ 15 │ +// │ now │ {:j} │ Dec │ +// │ now │ {:J} │ December │ +// │ now │ {:k} │ 12 │ +// │ now │ {:K} │ 12 │ +// │ now │ {:l} │ 24 │ +// │ now │ {:L} │ 2024 │ +// │ now │ {:m} │ December 15 │ +// │ now │ {:M} │ December 15 │ +// │ now │ {:n} │ Sunday, 15 December 2024 │ +// │ now │ {:n} │ Sunday, 15 December 2024 13:41:38 │ +// │ now │ {:o} │ 15 December 2024 │ +// │ now │ {:O} │ 15 December 2024 │ +// │ now │ {:s} │ 2024-12-15T13:41:38.163216000 │ +// │ now │ {:t} │ 13:41:38 │ +// │ now │ {:T} │ 13:41:38 │ +// │ now │ {:u} │ 2024-12-15 13:41:38 │ +// │ now │ {:U} │ Sunday, 15 December 2024 13:41:38 │ +// │ now │ {:v} │ 13:41 │ +// │ now │ {:V} │ 13:41 │ +// │ now │ {:w} │ 13} │ +// │ now │ {:W} │ 13 │ +// │ now │ {:x} │ 01 │ +// │ now │ {:X} │ 1 │ +// │ now │ {:y} │ December 24 │ +// │ now │ {:Y} │ December 2024 │ +// │ now │ {:z} │ CET │ +// │ now │ {:Z} │ CET │ // └──────────────────────────────────┴────────────┴──────────────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_time_span/README.md b/examples/xtd.core.examples/format/format_time_span/README.md index 2d285b06fa1a..6cbc25447c84 100644 --- a/examples/xtd.core.examples/format/format_time_span/README.md +++ b/examples/xtd.core.examples/format/format_time_span/README.md @@ -22,137 +22,137 @@ xtdc run ┌──────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐ │ time_span │ format │ representation │ ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ {} │ {} │ 00:00:00 | -│ {} │ {:c} │ 00:00:00 | -│ {} │ {:d} │ 0 | -│ {} │ {:D} │ 00 | -│ {} │ {:f} │ 0.0:00:00.0000000 | -│ {} │ {:F} │ 0.00:00:00.0000000 | -│ {} │ {:g} │ 0:00:00 | -│ {} │ {:G} │ 00:00:00 | -│ {} │ {:h} │ 0 | -│ {} │ {:H} │ 00 | -│ {} │ {:m} │ 0 | -│ {} │ {:M} │ 00 | -│ {} │ {:n} │ 0 | -│ {} │ {:N} │ 000000000 | -│ {} │ {:s} │ 0 | -│ {} │ {:S} │ 00 | -│ {} │ {:t} │ 0 | -│ {} │ {:T} │ 0000000 | +│ {} │ {} │ 00:00:00 │ +│ {} │ {:c} │ 00:00:00 │ +│ {} │ {:d} │ 0 │ +│ {} │ {:D} │ 00 │ +│ {} │ {:f} │ 0.0:00:00.0000000 │ +│ {} │ {:F} │ 0.00:00:00.0000000 │ +│ {} │ {:g} │ 0:00:00 │ +│ {} │ {:G} │ 00:00:00 │ +│ {} │ {:h} │ 0 │ +│ {} │ {:H} │ 00 │ +│ {} │ {:m} │ 0 │ +│ {} │ {:M} │ 00 │ +│ {} │ {:n} │ 0 │ +│ {} │ {:N} │ 000000000 │ +│ {} │ {:s} │ 0 │ +│ {} │ {:S} │ 00 │ +│ {} │ {:t} │ 0 │ +│ {} │ {:T} │ 0000000 │ ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ 6_h + 3_min + 8_s │ {} │ 06:03:08 | -│ 6_h + 3_min + 8_s │ {:c} │ 06:03:08 | -│ 6_h + 3_min + 8_s │ {:d} │ 0 | -│ 6_h + 3_min + 8_s │ {:D} │ 00 | -│ 6_h + 3_min + 8_s │ {:f} │ 0.6:03:08.0000000 | -│ 6_h + 3_min + 8_s │ {:F} │ 0.06:03:08.0000000 | -│ 6_h + 3_min + 8_s │ {:g} │ 6:03:08 | -│ 6_h + 3_min + 8_s │ {:G} │ 06:03:08 | -│ 6_h + 3_min + 8_s │ {:h} │ 6 | -│ 6_h + 3_min + 8_s │ {:H} │ 06 | -│ 6_h + 3_min + 8_s │ {:m} │ 3 | -│ 6_h + 3_min + 8_s │ {:M} │ 03 | -│ 6_h + 3_min + 8_s │ {:n} │ 0 | -│ 6_h + 3_min + 8_s │ {:N} │ 000000000 | -│ 6_h + 3_min + 8_s │ {:s} │ 8 | -│ 6_h + 3_min + 8_s │ {:S} │ 08 | -│ 6_h + 3_min + 8_s │ {:t} │ 0 | -│ 6_h + 3_min + 8_s │ {:T} │ 0000000 | +│ 6_h + 3_min + 8_s │ {} │ 06:03:08 │ +│ 6_h + 3_min + 8_s │ {:c} │ 06:03:08 │ +│ 6_h + 3_min + 8_s │ {:d} │ 0 │ +│ 6_h + 3_min + 8_s │ {:D} │ 00 │ +│ 6_h + 3_min + 8_s │ {:f} │ 0.6:03:08.0000000 │ +│ 6_h + 3_min + 8_s │ {:F} │ 0.06:03:08.0000000 │ +│ 6_h + 3_min + 8_s │ {:g} │ 6:03:08 │ +│ 6_h + 3_min + 8_s │ {:G} │ 06:03:08 │ +│ 6_h + 3_min + 8_s │ {:h} │ 6 │ +│ 6_h + 3_min + 8_s │ {:H} │ 06 │ +│ 6_h + 3_min + 8_s │ {:m} │ 3 │ +│ 6_h + 3_min + 8_s │ {:M} │ 03 │ +│ 6_h + 3_min + 8_s │ {:n} │ 0 │ +│ 6_h + 3_min + 8_s │ {:N} │ 000000000 │ +│ 6_h + 3_min + 8_s │ {:s} │ 8 │ +│ 6_h + 3_min + 8_s │ {:S} │ 08 │ +│ 6_h + 3_min + 8_s │ {:t} │ 0 │ +│ 6_h + 3_min + 8_s │ {:T} │ 0000000 │ ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ 52_h + 3_min + 32_s │ {} │ 2.04:03:02 | -│ 52_h + 3_min + 32_s │ {:c} │ 2.04:03:02 | -│ 52_h + 3_min + 32_s │ {:d} │ 2 | -│ 52_h + 3_min + 32_s │ {:D} │ 02 | -│ 52_h + 3_min + 32_s │ {:f} │ 2.4:03:02.0000000 | -│ 52_h + 3_min + 32_s │ {:F} │ 2.04:03:02.0000000 | -│ 52_h + 3_min + 32_s │ {:g} │ 2.4:03:02 | -│ 52_h + 3_min + 32_s │ {:G} │ 2.04:03:02 | -│ 52_h + 3_min + 32_s │ {:h} │ 4 | -│ 52_h + 3_min + 32_s │ {:H} │ 04 | -│ 52_h + 3_min + 32_s │ {:m} │ 3 | -│ 52_h + 3_min + 32_s │ {:M} │ 03 | -│ 52_h + 3_min + 32_s │ {:n} │ 0 | -│ 52_h + 3_min + 32_s │ {:N} │ 000000000 | -│ 52_h + 3_min + 32_s │ {:s} │ 2 | -│ 52_h + 3_min + 32_s │ {:S} │ 02 | -│ 52_h + 3_min + 32_s │ {:t} │ 0 | -│ 52_h + 3_min + 32_s │ {:T} │ 0000000 | +│ 52_h + 3_min + 32_s │ {} │ 2.04:03:02 │ +│ 52_h + 3_min + 32_s │ {:c} │ 2.04:03:02 │ +│ 52_h + 3_min + 32_s │ {:d} │ 2 │ +│ 52_h + 3_min + 32_s │ {:D} │ 02 │ +│ 52_h + 3_min + 32_s │ {:f} │ 2.4:03:02.0000000 │ +│ 52_h + 3_min + 32_s │ {:F} │ 2.04:03:02.0000000 │ +│ 52_h + 3_min + 32_s │ {:g} │ 2.4:03:02 │ +│ 52_h + 3_min + 32_s │ {:G} │ 2.04:03:02 │ +│ 52_h + 3_min + 32_s │ {:h} │ 4 │ +│ 52_h + 3_min + 32_s │ {:H} │ 04 │ +│ 52_h + 3_min + 32_s │ {:m} │ 3 │ +│ 52_h + 3_min + 32_s │ {:M} │ 03 │ +│ 52_h + 3_min + 32_s │ {:n} │ 0 │ +│ 52_h + 3_min + 32_s │ {:N} │ 000000000 │ +│ 52_h + 3_min + 32_s │ {:s} │ 2 │ +│ 52_h + 3_min + 32_s │ {:S} │ 02 │ +│ 52_h + 3_min + 32_s │ {:t} │ 0 │ +│ 52_h + 3_min + 32_s │ {:T} │ 0000000 │ ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ 24_ms + 543_ns │ {} │ 00:00:00.0240005 | -│ 24_ms + 543_ns │ {:c} │ 00:00:00.0240005 | -│ 24_ms + 543_ns │ {:d} │ 0 | -│ 24_ms + 543_ns │ {:D} │ 00 | -│ 24_ms + 543_ns │ {:f} │ 0.0:00:00.0240005 | -│ 24_ms + 543_ns │ {:F} │ 0.00:00:00.0240005 | -│ 24_ms + 543_ns │ {:g} │ 0:00:00.0240005 | -│ 24_ms + 543_ns │ {:G} │ 00:00:00.0240005 | -│ 24_ms + 543_ns │ {:h} │ 0 | -│ 24_ms + 543_ns │ {:H} │ 00 | -│ 24_ms + 543_ns │ {:m} │ 0 | -│ 24_ms + 543_ns │ {:M} │ 00 | -│ 24_ms + 543_ns │ {:n} │ 24000500 | -│ 24_ms + 543_ns │ {:N} │ 024000500 | -│ 24_ms + 543_ns │ {:s} │ 0 | -│ 24_ms + 543_ns │ {:S} │ 00 | -│ 24_ms + 543_ns │ {:t} │ 240005 | -│ 24_ms + 543_ns │ {:T} │ 0240005 | +│ 24_ms + 543_ns │ {} │ 00:00:00.0240005 │ +│ 24_ms + 543_ns │ {:c} │ 00:00:00.0240005 │ +│ 24_ms + 543_ns │ {:d} │ 0 │ +│ 24_ms + 543_ns │ {:D} │ 00 │ +│ 24_ms + 543_ns │ {:f} │ 0.0:00:00.0240005 │ +│ 24_ms + 543_ns │ {:F} │ 0.00:00:00.0240005 │ +│ 24_ms + 543_ns │ {:g} │ 0:00:00.0240005 │ +│ 24_ms + 543_ns │ {:G} │ 00:00:00.0240005 │ +│ 24_ms + 543_ns │ {:h} │ 0 │ +│ 24_ms + 543_ns │ {:H} │ 00 │ +│ 24_ms + 543_ns │ {:m} │ 0 │ +│ 24_ms + 543_ns │ {:M} │ 00 │ +│ 24_ms + 543_ns │ {:n} │ 24000500 │ +│ 24_ms + 543_ns │ {:N} │ 024000500 │ +│ 24_ms + 543_ns │ {:s} │ 0 │ +│ 24_ms + 543_ns │ {:S} │ 00 │ +│ 24_ms + 543_ns │ {:t} │ 240005 │ +│ 24_ms + 543_ns │ {:T} │ 0240005 │ ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {} │ 2.04:03:02.0240005 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:c} │ 2.04:03:02.0240005 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:d} │ 2 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:D} │ 02 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:f} │ 2.4:03:02.0240005 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:F} │ 2.04:03:02.0240005 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:g} │ 2.4:03:02.0240005 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:G} │ 2.04:03:02.0240005 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:h} │ 4 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:H} │ 04 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:m} │ 3 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:M} │ 03 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:n} │ 24000500 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:N} │ 024000500 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:s} │ 2 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:S} │ 02 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:t} │ 240005 | -│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:T} │ 0240005 | +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {} │ 2.04:03:02.0240005 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:c} │ 2.04:03:02.0240005 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:d} │ 2 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:D} │ 02 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:f} │ 2.4:03:02.0240005 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:F} │ 2.04:03:02.0240005 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:g} │ 2.4:03:02.0240005 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:G} │ 2.04:03:02.0240005 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:h} │ 4 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:H} │ 04 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:m} │ 3 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:M} │ 03 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:n} │ 24000500 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:N} │ 024000500 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:s} │ 2 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:S} │ 02 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:t} │ 240005 │ +│ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:T} │ 0240005 │ ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ time_span::min_value │ {} │ -10675199.02:48:05.4775808 | -│ time_span::min_value │ {:c} │ -10675199.02:48:05.4775808 | -│ time_span::min_value │ {:d} │ 10675199 | -│ time_span::min_value │ {:D} │ 10675199 | -│ time_span::min_value │ {:f} │ -10675199.2:48:05.4775808 | -│ time_span::min_value │ {:F} │ -10675199.02:48:05.4775808 | -│ time_span::min_value │ {:g} │ -10675199.2:48:05.4775808 | -│ time_span::min_value │ {:G} │ -10675199.02:48:05.4775808 | -│ time_span::min_value │ {:h} │ 2 | -│ time_span::min_value │ {:H} │ 02 | -│ time_span::min_value │ {:m} │ 48 | -│ time_span::min_value │ {:M} │ 48 | -│ time_span::min_value │ {:n} │ 477580800 | -│ time_span::min_value │ {:N} │ 477580800 | -│ time_span::min_value │ {:s} │ 5 | -│ time_span::min_value │ {:S} │ 05 | -│ time_span::min_value │ {:t} │ 4775808 | -│ time_span::min_value │ {:T} │ 4775808 | +│ time_span::min_value │ {} │ -10675199.02:48:05.4775808 │ +│ time_span::min_value │ {:c} │ -10675199.02:48:05.4775808 │ +│ time_span::min_value │ {:d} │ 10675199 │ +│ time_span::min_value │ {:D} │ 10675199 │ +│ time_span::min_value │ {:f} │ -10675199.2:48:05.4775808 │ +│ time_span::min_value │ {:F} │ -10675199.02:48:05.4775808 │ +│ time_span::min_value │ {:g} │ -10675199.2:48:05.4775808 │ +│ time_span::min_value │ {:G} │ -10675199.02:48:05.4775808 │ +│ time_span::min_value │ {:h} │ 2 │ +│ time_span::min_value │ {:H} │ 02 │ +│ time_span::min_value │ {:m} │ 48 │ +│ time_span::min_value │ {:M} │ 48 │ +│ time_span::min_value │ {:n} │ 477580800 │ +│ time_span::min_value │ {:N} │ 477580800 │ +│ time_span::min_value │ {:s} │ 5 │ +│ time_span::min_value │ {:S} │ 05 │ +│ time_span::min_value │ {:t} │ 4775808 │ +│ time_span::min_value │ {:T} │ 4775808 │ ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ time_span::max_value │ {} │ 10675199.02:48:05.4775807 | -│ time_span::max_value │ {:c} │ 10675199.02:48:05.4775807 | -│ time_span::max_value │ {:d} │ 10675199 | -│ time_span::max_value │ {:D} │ 10675199 | -│ time_span::max_value │ {:f} │ 10675199.2:48:05.4775807 | -│ time_span::max_value │ {:F} │ 10675199.02:48:05.4775807 | -│ time_span::max_value │ {:g} │ 10675199.2:48:05.4775807 | -│ time_span::max_value │ {:G} │ 10675199.02:48:05.4775807 | -│ time_span::max_value │ {:h} │ 2 | -│ time_span::max_value │ {:H} │ 02 | -│ time_span::max_value │ {:m} │ 48 | -│ time_span::max_value │ {:M} │ 48 | -│ time_span::max_value │ {:n} │ 477580700 | -│ time_span::max_value │ {:N} │ 477580700 | -│ time_span::max_value │ {:s} │ 5 | -│ time_span::max_value │ {:S} │ 05 | -│ time_span::max_value │ {:t} │ 4775807 | -│ time_span::max_value │ {:T} │ 4775807 | +│ time_span::max_value │ {} │ 10675199.02:48:05.4775807 │ +│ time_span::max_value │ {:c} │ 10675199.02:48:05.4775807 │ +│ time_span::max_value │ {:d} │ 10675199 │ +│ time_span::max_value │ {:D} │ 10675199 │ +│ time_span::max_value │ {:f} │ 10675199.2:48:05.4775807 │ +│ time_span::max_value │ {:F} │ 10675199.02:48:05.4775807 │ +│ time_span::max_value │ {:g} │ 10675199.2:48:05.4775807 │ +│ time_span::max_value │ {:G} │ 10675199.02:48:05.4775807 │ +│ time_span::max_value │ {:h} │ 2 │ +│ time_span::max_value │ {:H} │ 02 │ +│ time_span::max_value │ {:m} │ 48 │ +│ time_span::max_value │ {:M} │ 48 │ +│ time_span::max_value │ {:n} │ 477580700 │ +│ time_span::max_value │ {:N} │ 477580700 │ +│ time_span::max_value │ {:s} │ 5 │ +│ time_span::max_value │ {:S} │ 05 │ +│ time_span::max_value │ {:t} │ 4775807 │ +│ time_span::max_value │ {:T} │ 4775807 │ └──────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_time_span/src/format_time_span.cpp b/examples/xtd.core.examples/format/format_time_span/src/format_time_span.cpp index 9dfbf8301ef6..c39e3cc1106f 100644 --- a/examples/xtd.core.examples/format/format_time_span/src/format_time_span.cpp +++ b/examples/xtd.core.examples/format/format_time_span/src/format_time_span.cpp @@ -13,24 +13,24 @@ auto print_time_span(const string& text, const time_span& value, cap c) { << "│ time_span │ format │ representation │" << environment::new_line << "├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {} │ " << string::format("{}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:c} │ " << string::format("{:c}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:d} │ " << string::format("{:d}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:D} │ " << string::format("{:D}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:f} │ " << string::format("{:f}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:F} │ " << string::format("{:F}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:g} │ " << string::format("{:g}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:G} │ " << string::format("{:G}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:h} │ " << string::format("{:h}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:H} │ " << string::format("{:H}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:m} │ " << string::format("{:m}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:M} │ " << string::format("{:M}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:n} │ " << string::format("{:n}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:N} │ " << string::format("{:N}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:s} │ " << string::format("{:s}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:S} │ " << string::format("{:S}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:t} │ " << string::format("{:t}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(40) << " │ {:T} │ " << string::format("{:T}", value).pad_right(40) << " |" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {} │ " << string::format("{}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:c} │ " << string::format("{:c}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:d} │ " << string::format("{:d}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:D} │ " << string::format("{:D}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:f} │ " << string::format("{:f}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:F} │ " << string::format("{:F}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:g} │ " << string::format("{:g}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:G} │ " << string::format("{:G}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:h} │ " << string::format("{:h}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:H} │ " << string::format("{:H}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:m} │ " << string::format("{:m}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:M} │ " << string::format("{:M}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:n} │ " << string::format("{:n}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:N} │ " << string::format("{:N}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:s} │ " << string::format("{:s}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:S} │ " << string::format("{:S}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:t} │ " << string::format("{:t}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(40) << " │ {:T} │ " << string::format("{:T}", value).pad_right(40) << " │" << environment::new_line; if (c != cap::end) console::out << "├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; @@ -53,136 +53,136 @@ auto main() -> int { // ┌──────────────────────────────────────────┬────────────┬──────────────────────────────────────────┐ // │ time_span │ format │ representation │ // ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ {} │ {} │ 00:00:00 | -// │ {} │ {:c} │ 00:00:00 | -// │ {} │ {:d} │ 0 | -// │ {} │ {:D} │ 00 | -// │ {} │ {:f} │ 0.0:00:00.0000000 | -// │ {} │ {:F} │ 0.00:00:00.0000000 | -// │ {} │ {:g} │ 0:00:00 | -// │ {} │ {:G} │ 00:00:00 | -// │ {} │ {:h} │ 0 | -// │ {} │ {:H} │ 00 | -// │ {} │ {:m} │ 0 | -// │ {} │ {:M} │ 00 | -// │ {} │ {:n} │ 0 | -// │ {} │ {:N} │ 000000000 | -// │ {} │ {:s} │ 0 | -// │ {} │ {:S} │ 00 | -// │ {} │ {:t} │ 0 | -// │ {} │ {:T} │ 0000000 | +// │ {} │ {} │ 00:00:00 │ +// │ {} │ {:c} │ 00:00:00 │ +// │ {} │ {:d} │ 0 │ +// │ {} │ {:D} │ 00 │ +// │ {} │ {:f} │ 0.0:00:00.0000000 │ +// │ {} │ {:F} │ 0.00:00:00.0000000 │ +// │ {} │ {:g} │ 0:00:00 │ +// │ {} │ {:G} │ 00:00:00 │ +// │ {} │ {:h} │ 0 │ +// │ {} │ {:H} │ 00 │ +// │ {} │ {:m} │ 0 │ +// │ {} │ {:M} │ 00 │ +// │ {} │ {:n} │ 0 │ +// │ {} │ {:N} │ 000000000 │ +// │ {} │ {:s} │ 0 │ +// │ {} │ {:S} │ 00 │ +// │ {} │ {:t} │ 0 │ +// │ {} │ {:T} │ 0000000 │ // ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ 6_h + 3_min + 8_s │ {} │ 06:03:08 | -// │ 6_h + 3_min + 8_s │ {:c} │ 06:03:08 | -// │ 6_h + 3_min + 8_s │ {:d} │ 0 | -// │ 6_h + 3_min + 8_s │ {:D} │ 00 | -// │ 6_h + 3_min + 8_s │ {:f} │ 0.6:03:08.0000000 | -// │ 6_h + 3_min + 8_s │ {:F} │ 0.06:03:08.0000000 | -// │ 6_h + 3_min + 8_s │ {:g} │ 6:03:08 | -// │ 6_h + 3_min + 8_s │ {:G} │ 06:03:08 | -// │ 6_h + 3_min + 8_s │ {:h} │ 6 | -// │ 6_h + 3_min + 8_s │ {:H} │ 06 | -// │ 6_h + 3_min + 8_s │ {:m} │ 3 | -// │ 6_h + 3_min + 8_s │ {:M} │ 03 | -// │ 6_h + 3_min + 8_s │ {:n} │ 0 | -// │ 6_h + 3_min + 8_s │ {:N} │ 000000000 | -// │ 6_h + 3_min + 8_s │ {:s} │ 8 | -// │ 6_h + 3_min + 8_s │ {:S} │ 08 | -// │ 6_h + 3_min + 8_s │ {:t} │ 0 | -// │ 6_h + 3_min + 8_s │ {:T} │ 0000000 | +// │ 6_h + 3_min + 8_s │ {} │ 06:03:08 │ +// │ 6_h + 3_min + 8_s │ {:c} │ 06:03:08 │ +// │ 6_h + 3_min + 8_s │ {:d} │ 0 │ +// │ 6_h + 3_min + 8_s │ {:D} │ 00 │ +// │ 6_h + 3_min + 8_s │ {:f} │ 0.6:03:08.0000000 │ +// │ 6_h + 3_min + 8_s │ {:F} │ 0.06:03:08.0000000 │ +// │ 6_h + 3_min + 8_s │ {:g} │ 6:03:08 │ +// │ 6_h + 3_min + 8_s │ {:G} │ 06:03:08 │ +// │ 6_h + 3_min + 8_s │ {:h} │ 6 │ +// │ 6_h + 3_min + 8_s │ {:H} │ 06 │ +// │ 6_h + 3_min + 8_s │ {:m} │ 3 │ +// │ 6_h + 3_min + 8_s │ {:M} │ 03 │ +// │ 6_h + 3_min + 8_s │ {:n} │ 0 │ +// │ 6_h + 3_min + 8_s │ {:N} │ 000000000 │ +// │ 6_h + 3_min + 8_s │ {:s} │ 8 │ +// │ 6_h + 3_min + 8_s │ {:S} │ 08 │ +// │ 6_h + 3_min + 8_s │ {:t} │ 0 │ +// │ 6_h + 3_min + 8_s │ {:T} │ 0000000 │ // ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ 52_h + 3_min + 32_s │ {} │ 2.04:03:02 | -// │ 52_h + 3_min + 32_s │ {:c} │ 2.04:03:02 | -// │ 52_h + 3_min + 32_s │ {:d} │ 2 | -// │ 52_h + 3_min + 32_s │ {:D} │ 02 | -// │ 52_h + 3_min + 32_s │ {:f} │ 2.4:03:02.0000000 | -// │ 52_h + 3_min + 32_s │ {:F} │ 2.04:03:02.0000000 | -// │ 52_h + 3_min + 32_s │ {:g} │ 2.4:03:02 | -// │ 52_h + 3_min + 32_s │ {:G} │ 2.04:03:02 | -// │ 52_h + 3_min + 32_s │ {:h} │ 4 | -// │ 52_h + 3_min + 32_s │ {:H} │ 04 | -// │ 52_h + 3_min + 32_s │ {:m} │ 3 | -// │ 52_h + 3_min + 32_s │ {:M} │ 03 | -// │ 52_h + 3_min + 32_s │ {:n} │ 0 | -// │ 52_h + 3_min + 32_s │ {:N} │ 000000000 | -// │ 52_h + 3_min + 32_s │ {:s} │ 2 | -// │ 52_h + 3_min + 32_s │ {:S} │ 02 | -// │ 52_h + 3_min + 32_s │ {:t} │ 0 | -// │ 52_h + 3_min + 32_s │ {:T} │ 0000000 | +// │ 52_h + 3_min + 32_s │ {} │ 2.04:03:02 │ +// │ 52_h + 3_min + 32_s │ {:c} │ 2.04:03:02 │ +// │ 52_h + 3_min + 32_s │ {:d} │ 2 │ +// │ 52_h + 3_min + 32_s │ {:D} │ 02 │ +// │ 52_h + 3_min + 32_s │ {:f} │ 2.4:03:02.0000000 │ +// │ 52_h + 3_min + 32_s │ {:F} │ 2.04:03:02.0000000 │ +// │ 52_h + 3_min + 32_s │ {:g} │ 2.4:03:02 │ +// │ 52_h + 3_min + 32_s │ {:G} │ 2.04:03:02 │ +// │ 52_h + 3_min + 32_s │ {:h} │ 4 │ +// │ 52_h + 3_min + 32_s │ {:H} │ 04 │ +// │ 52_h + 3_min + 32_s │ {:m} │ 3 │ +// │ 52_h + 3_min + 32_s │ {:M} │ 03 │ +// │ 52_h + 3_min + 32_s │ {:n} │ 0 │ +// │ 52_h + 3_min + 32_s │ {:N} │ 000000000 │ +// │ 52_h + 3_min + 32_s │ {:s} │ 2 │ +// │ 52_h + 3_min + 32_s │ {:S} │ 02 │ +// │ 52_h + 3_min + 32_s │ {:t} │ 0 │ +// │ 52_h + 3_min + 32_s │ {:T} │ 0000000 │ // ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ 24_ms + 543_ns │ {} │ 00:00:00.0240005 | -// │ 24_ms + 543_ns │ {:c} │ 00:00:00.0240005 | -// │ 24_ms + 543_ns │ {:d} │ 0 | -// │ 24_ms + 543_ns │ {:D} │ 00 | -// │ 24_ms + 543_ns │ {:f} │ 0.0:00:00.0240005 | -// │ 24_ms + 543_ns │ {:F} │ 0.00:00:00.0240005 | -// │ 24_ms + 543_ns │ {:g} │ 0:00:00.0240005 | -// │ 24_ms + 543_ns │ {:G} │ 00:00:00.0240005 | -// │ 24_ms + 543_ns │ {:h} │ 0 | -// │ 24_ms + 543_ns │ {:H} │ 00 | -// │ 24_ms + 543_ns │ {:m} │ 0 | -// │ 24_ms + 543_ns │ {:M} │ 00 | -// │ 24_ms + 543_ns │ {:n} │ 24000500 | -// │ 24_ms + 543_ns │ {:N} │ 024000500 | -// │ 24_ms + 543_ns │ {:s} │ 0 | -// │ 24_ms + 543_ns │ {:S} │ 00 | -// │ 24_ms + 543_ns │ {:t} │ 240005 | -// │ 24_ms + 543_ns │ {:T} │ 0240005 | +// │ 24_ms + 543_ns │ {} │ 00:00:00.0240005 │ +// │ 24_ms + 543_ns │ {:c} │ 00:00:00.0240005 │ +// │ 24_ms + 543_ns │ {:d} │ 0 │ +// │ 24_ms + 543_ns │ {:D} │ 00 │ +// │ 24_ms + 543_ns │ {:f} │ 0.0:00:00.0240005 │ +// │ 24_ms + 543_ns │ {:F} │ 0.00:00:00.0240005 │ +// │ 24_ms + 543_ns │ {:g} │ 0:00:00.0240005 │ +// │ 24_ms + 543_ns │ {:G} │ 00:00:00.0240005 │ +// │ 24_ms + 543_ns │ {:h} │ 0 │ +// │ 24_ms + 543_ns │ {:H} │ 00 │ +// │ 24_ms + 543_ns │ {:m} │ 0 │ +// │ 24_ms + 543_ns │ {:M} │ 00 │ +// │ 24_ms + 543_ns │ {:n} │ 24000500 │ +// │ 24_ms + 543_ns │ {:N} │ 024000500 │ +// │ 24_ms + 543_ns │ {:s} │ 0 │ +// │ 24_ms + 543_ns │ {:S} │ 00 │ +// │ 24_ms + 543_ns │ {:t} │ 240005 │ +// │ 24_ms + 543_ns │ {:T} │ 0240005 │ // ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {} │ 2.04:03:02.0240005 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:c} │ 2.04:03:02.0240005 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:d} │ 2 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:D} │ 02 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:f} │ 2.4:03:02.0240005 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:F} │ 2.04:03:02.0240005 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:g} │ 2.4:03:02.0240005 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:G} │ 2.04:03:02.0240005 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:h} │ 4 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:H} │ 04 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:m} │ 3 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:M} │ 03 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:n} │ 24000500 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:N} │ 024000500 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:s} │ 2 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:S} │ 02 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:t} │ 240005 | -// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:T} │ 0240005 | +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {} │ 2.04:03:02.0240005 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:c} │ 2.04:03:02.0240005 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:d} │ 2 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:D} │ 02 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:f} │ 2.4:03:02.0240005 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:F} │ 2.04:03:02.0240005 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:g} │ 2.4:03:02.0240005 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:G} │ 2.04:03:02.0240005 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:h} │ 4 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:H} │ 04 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:m} │ 3 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:M} │ 03 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:n} │ 24000500 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:N} │ 024000500 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:s} │ 2 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:S} │ 02 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:t} │ 240005 │ +// │ 52_h + 3_min + 2_s + 24_ms + 543_ns │ {:T} │ 0240005 │ // ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ time_span::min_value │ {} │ -10675199.02:48:05.4775808 | -// │ time_span::min_value │ {:c} │ -10675199.02:48:05.4775808 | -// │ time_span::min_value │ {:d} │ 10675199 | -// │ time_span::min_value │ {:D} │ 10675199 | -// │ time_span::min_value │ {:f} │ -10675199.2:48:05.4775808 | -// │ time_span::min_value │ {:F} │ -10675199.02:48:05.4775808 | -// │ time_span::min_value │ {:g} │ -10675199.2:48:05.4775808 | -// │ time_span::min_value │ {:G} │ -10675199.02:48:05.4775808 | -// │ time_span::min_value │ {:h} │ 2 | -// │ time_span::min_value │ {:H} │ 02 | -// │ time_span::min_value │ {:m} │ 48 | -// │ time_span::min_value │ {:M} │ 48 | -// │ time_span::min_value │ {:n} │ 477580800 | -// │ time_span::min_value │ {:N} │ 477580800 | -// │ time_span::min_value │ {:s} │ 5 | -// │ time_span::min_value │ {:S} │ 05 | -// │ time_span::min_value │ {:t} │ 4775808 | -// │ time_span::min_value │ {:T} │ 4775808 | +// │ time_span::min_value │ {} │ -10675199.02:48:05.4775808 │ +// │ time_span::min_value │ {:c} │ -10675199.02:48:05.4775808 │ +// │ time_span::min_value │ {:d} │ 10675199 │ +// │ time_span::min_value │ {:D} │ 10675199 │ +// │ time_span::min_value │ {:f} │ -10675199.2:48:05.4775808 │ +// │ time_span::min_value │ {:F} │ -10675199.02:48:05.4775808 │ +// │ time_span::min_value │ {:g} │ -10675199.2:48:05.4775808 │ +// │ time_span::min_value │ {:G} │ -10675199.02:48:05.4775808 │ +// │ time_span::min_value │ {:h} │ 2 │ +// │ time_span::min_value │ {:H} │ 02 │ +// │ time_span::min_value │ {:m} │ 48 │ +// │ time_span::min_value │ {:M} │ 48 │ +// │ time_span::min_value │ {:n} │ 477580800 │ +// │ time_span::min_value │ {:N} │ 477580800 │ +// │ time_span::min_value │ {:s} │ 5 │ +// │ time_span::min_value │ {:S} │ 05 │ +// │ time_span::min_value │ {:t} │ 4775808 │ +// │ time_span::min_value │ {:T} │ 4775808 │ // ├──────────────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ time_span::max_value │ {} │ 10675199.02:48:05.4775807 | -// │ time_span::max_value │ {:c} │ 10675199.02:48:05.4775807 | -// │ time_span::max_value │ {:d} │ 10675199 | -// │ time_span::max_value │ {:D} │ 10675199 | -// │ time_span::max_value │ {:f} │ 10675199.2:48:05.4775807 | -// │ time_span::max_value │ {:F} │ 10675199.02:48:05.4775807 | -// │ time_span::max_value │ {:g} │ 10675199.2:48:05.4775807 | -// │ time_span::max_value │ {:G} │ 10675199.02:48:05.4775807 | -// │ time_span::max_value │ {:h} │ 2 | -// │ time_span::max_value │ {:H} │ 02 | -// │ time_span::max_value │ {:m} │ 48 | -// │ time_span::max_value │ {:M} │ 48 | -// │ time_span::max_value │ {:n} │ 477580700 | -// │ time_span::max_value │ {:N} │ 477580700 | -// │ time_span::max_value │ {:s} │ 5 | -// │ time_span::max_value │ {:S} │ 05 | -// │ time_span::max_value │ {:t} │ 4775807 | -// │ time_span::max_value │ {:T} │ 4775807 | +// │ time_span::max_value │ {} │ 10675199.02:48:05.4775807 │ +// │ time_span::max_value │ {:c} │ 10675199.02:48:05.4775807 │ +// │ time_span::max_value │ {:d} │ 10675199 │ +// │ time_span::max_value │ {:D} │ 10675199 │ +// │ time_span::max_value │ {:f} │ 10675199.2:48:05.4775807 │ +// │ time_span::max_value │ {:F} │ 10675199.02:48:05.4775807 │ +// │ time_span::max_value │ {:g} │ 10675199.2:48:05.4775807 │ +// │ time_span::max_value │ {:G} │ 10675199.02:48:05.4775807 │ +// │ time_span::max_value │ {:h} │ 2 │ +// │ time_span::max_value │ {:H} │ 02 │ +// │ time_span::max_value │ {:m} │ 48 │ +// │ time_span::max_value │ {:M} │ 48 │ +// │ time_span::max_value │ {:n} │ 477580700 │ +// │ time_span::max_value │ {:N} │ 477580700 │ +// │ time_span::max_value │ {:s} │ 5 │ +// │ time_span::max_value │ {:S} │ 05 │ +// │ time_span::max_value │ {:t} │ 4775807 │ +// │ time_span::max_value │ {:T} │ 4775807 │ // └──────────────────────────────────────────┴────────────┴──────────────────────────────────────────┘ diff --git a/examples/xtd.core.examples/format/format_tm/README.md b/examples/xtd.core.examples/format/format_tm/README.md index 1fd452295025..2a7e6905be79 100644 --- a/examples/xtd.core.examples/format/format_tm/README.md +++ b/examples/xtd.core.examples/format/format_tm/README.md @@ -22,173 +22,173 @@ xtdc run ┌──────────────────────────────────┬────────────┬──────────────────────────────────────────┐ │ date_time │ format │ representation │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ 0 │ {} │ Sun Jan 0 00:00:00 1900 | -│ 0 │ {:a} │ AM | -│ 0 │ {:b} │ 000 | -│ 0 │ {:B} │ 0 | -│ 0 │ {:d} │ 01/00/1900 | -│ 0 │ {:D} │ 1/00/1900 | -│ 0 │ {:f} │ Sun Jan 0 00:00:00 1900 | -│ 0 │ {:F} │ Sun Jan 0 00:00:00 1900 | -│ 0 │ {:g} │ Sun Jan 0 00:00:00 1900 | -│ 0 │ {:G} │ Sun Jan 0 00:00:00 1900 | -│ 0 │ {:h} │ Sun | -│ 0 │ {:H} │ Sunday | -│ 0 │ {:i} │ 00 | -│ 0 │ {:I} │ 0 | -│ 0 │ {:j} │ Jan | -│ 0 │ {:J} │ January | -│ 0 │ {:k} │ 01 | -│ 0 │ {:K} │ 1 | -│ 0 │ {:l} │ 00 | -│ 0 │ {:L} │ 1900 | -│ 0 │ {:m} │ January 0 | -│ 0 │ {:M} │ January 0 | -│ 0 │ {:n} │ Sunday, 0 January 1900 | -│ 0 │ {:n} │ Sunday, 0 January 1900 0:00:00 | -│ 0 │ {:o} │ 0 January 1900 | -│ 0 │ {:O} │ 0 January 1900 | -│ 0 │ {:s} │ 1900-01-00T00:00:00.0000000 | -│ 0 │ {:t} │ 00:00:00 | -│ 0 │ {:T} │ 0:00:00 | -│ 0 │ {:u} │ 1900-01-00 00:00:00 | -│ 0 │ {:U} │ Sunday, 0 January 1900 0:00:00 | -│ 0 │ {:v} │ 00:00 | -│ 0 │ {:V} │ 0:00 | -│ 0 │ {:w} │ 00} | -│ 0 │ {:W} │ 0 | -│ 0 │ {:x} │ 00 | -│ 0 │ {:X} │ 0 | -│ 0 │ {:y} │ January 0 | -│ 0 │ {:Y} │ January 1900 | -│ 0 │ {:z} │ CET | -│ 0 │ {:Z} │ CET | +│ 0 │ {} │ Sun Jan 0 00:00:00 1900 │ +│ 0 │ {:a} │ AM │ +│ 0 │ {:b} │ 000 │ +│ 0 │ {:B} │ 0 │ +│ 0 │ {:d} │ 01/00/1900 │ +│ 0 │ {:D} │ 1/00/1900 │ +│ 0 │ {:f} │ Sun Jan 0 00:00:00 1900 │ +│ 0 │ {:F} │ Sun Jan 0 00:00:00 1900 │ +│ 0 │ {:g} │ Sun Jan 0 00:00:00 1900 │ +│ 0 │ {:G} │ Sun Jan 0 00:00:00 1900 │ +│ 0 │ {:h} │ Sun │ +│ 0 │ {:H} │ Sunday │ +│ 0 │ {:i} │ 00 │ +│ 0 │ {:I} │ 0 │ +│ 0 │ {:j} │ Jan │ +│ 0 │ {:J} │ January │ +│ 0 │ {:k} │ 01 │ +│ 0 │ {:K} │ 1 │ +│ 0 │ {:l} │ 00 │ +│ 0 │ {:L} │ 1900 │ +│ 0 │ {:m} │ January 0 │ +│ 0 │ {:M} │ January 0 │ +│ 0 │ {:n} │ Sunday, 0 January 1900 │ +│ 0 │ {:n} │ Sunday, 0 January 1900 0:00:00 │ +│ 0 │ {:o} │ 0 January 1900 │ +│ 0 │ {:O} │ 0 January 1900 │ +│ 0 │ {:s} │ 1900-01-00T00:00:00.0000000 │ +│ 0 │ {:t} │ 00:00:00 │ +│ 0 │ {:T} │ 0:00:00 │ +│ 0 │ {:u} │ 1900-01-00 00:00:00 │ +│ 0 │ {:U} │ Sunday, 0 January 1900 0:00:00 │ +│ 0 │ {:v} │ 00:00 │ +│ 0 │ {:V} │ 0:00 │ +│ 0 │ {:w} │ 00} │ +│ 0 │ {:W} │ 0 │ +│ 0 │ {:x} │ 00 │ +│ 0 │ {:X} │ 0 │ +│ 0 │ {:y} │ January 0 │ +│ 0 │ {:Y} │ January 1900 │ +│ 0 │ {:z} │ CET │ +│ 0 │ {:Z} │ CET │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:a} │ AM | -│ make_time(1971, 1, 5) │ {:b} │ 000 | -│ make_time(1971, 1, 5) │ {:B} │ 0 | -│ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 | -│ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 | -│ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 | -│ make_time(1971, 1, 5) │ {:h} │ Tue | -│ make_time(1971, 1, 5) │ {:H} │ Tuesday | -│ make_time(1971, 1, 5) │ {:i} │ 05 | -│ make_time(1971, 1, 5) │ {:I} │ 5 | -│ make_time(1971, 1, 5) │ {:j} │ Jan | -│ make_time(1971, 1, 5) │ {:J} │ January | -│ make_time(1971, 1, 5) │ {:k} │ 01 | -│ make_time(1971, 1, 5) │ {:K} │ 1 | -│ make_time(1971, 1, 5) │ {:l} │ 71 | -│ make_time(1971, 1, 5) │ {:L} │ 1971 | -│ make_time(1971, 1, 5) │ {:m} │ January 5 | -│ make_time(1971, 1, 5) │ {:M} │ January 5 | -│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 | -│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 | -│ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 | -│ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 | -│ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 | -│ make_time(1971, 1, 5) │ {:t} │ 00:00:00 | -│ make_time(1971, 1, 5) │ {:T} │ 0:00:00 | -│ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 | -│ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 | -│ make_time(1971, 1, 5) │ {:v} │ 00:00 | -│ make_time(1971, 1, 5) │ {:V} │ 0:00 | -│ make_time(1971, 1, 5) │ {:w} │ 00} | -│ make_time(1971, 1, 5) │ {:W} │ 0 | -│ make_time(1971, 1, 5) │ {:x} │ 00 | -│ make_time(1971, 1, 5) │ {:X} │ 0 | -│ make_time(1971, 1, 5) │ {:y} │ January 71 | -│ make_time(1971, 1, 5) │ {:Y} │ January 1971 | -│ make_time(1971, 1, 5) │ {:z} │ CET | -│ make_time(1971, 1, 5) │ {:Z} │ CET | +│ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:a} │ AM │ +│ make_time(1971, 1, 5) │ {:b} │ 000 │ +│ make_time(1971, 1, 5) │ {:B} │ 0 │ +│ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 │ +│ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 │ +│ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 │ +│ make_time(1971, 1, 5) │ {:h} │ Tue │ +│ make_time(1971, 1, 5) │ {:H} │ Tuesday │ +│ make_time(1971, 1, 5) │ {:i} │ 05 │ +│ make_time(1971, 1, 5) │ {:I} │ 5 │ +│ make_time(1971, 1, 5) │ {:j} │ Jan │ +│ make_time(1971, 1, 5) │ {:J} │ January │ +│ make_time(1971, 1, 5) │ {:k} │ 01 │ +│ make_time(1971, 1, 5) │ {:K} │ 1 │ +│ make_time(1971, 1, 5) │ {:l} │ 71 │ +│ make_time(1971, 1, 5) │ {:L} │ 1971 │ +│ make_time(1971, 1, 5) │ {:m} │ January 5 │ +│ make_time(1971, 1, 5) │ {:M} │ January 5 │ +│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 │ +│ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 │ +│ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 │ +│ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 │ +│ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 │ +│ make_time(1971, 1, 5) │ {:t} │ 00:00:00 │ +│ make_time(1971, 1, 5) │ {:T} │ 0:00:00 │ +│ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 │ +│ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 │ +│ make_time(1971, 1, 5) │ {:v} │ 00:00 │ +│ make_time(1971, 1, 5) │ {:V} │ 0:00 │ +│ make_time(1971, 1, 5) │ {:w} │ 00} │ +│ make_time(1971, 1, 5) │ {:W} │ 0 │ +│ make_time(1971, 1, 5) │ {:x} │ 00 │ +│ make_time(1971, 1, 5) │ {:X} │ 0 │ +│ make_time(1971, 1, 5) │ {:y} │ January 71 │ +│ make_time(1971, 1, 5) │ {:Y} │ January 1971 │ +│ make_time(1971, 1, 5) │ {:z} │ CET │ +│ make_time(1971, 1, 5) │ {:Z} │ CET │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET | -│ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET | +│ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET │ +│ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET │ ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -│ now │ {} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:a} │ PM | -│ now │ {:b} │ 163 | -│ now │ {:B} │ 163 | -│ now │ {:d} │ 12/15/2024 | -│ now │ {:D} │ 12/15/2024 | -│ now │ {:f} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:F} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:g} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:G} │ Sun Dec 15 13:41:38 2024 | -│ now │ {:h} │ Sun | -│ now │ {:H} │ Sunday | -│ now │ {:i} │ 15 | -│ now │ {:I} │ 15 | -│ now │ {:j} │ Dec | -│ now │ {:J} │ December | -│ now │ {:k} │ 12 | -│ now │ {:K} │ 12 | -│ now │ {:l} │ 24 | -│ now │ {:L} │ 2024 | -│ now │ {:m} │ December 15 | -│ now │ {:M} │ December 15 | -│ now │ {:n} │ Sunday, 15 December 2024 | -│ now │ {:n} │ Sunday, 15 December 2024 13:41:38 | -│ now │ {:o} │ 15 December 2024 | -│ now │ {:O} │ 15 December 2024 | -│ now │ {:s} │ 2024-12-15T13:41:38.163216000 | -│ now │ {:t} │ 13:41:38 | -│ now │ {:T} │ 13:41:38 | -│ now │ {:u} │ 2024-12-15 13:41:38 | -│ now │ {:U} │ Sunday, 15 December 2024 13:41:38 | -│ now │ {:v} │ 13:41 | -│ now │ {:V} │ 13:41 | -│ now │ {:w} │ 13} | -│ now │ {:W} │ 13 | -│ now │ {:x} │ 01 | -│ now │ {:X} │ 1 | -│ now │ {:y} │ December 24 | -│ now │ {:Y} │ December 2024 | -│ now │ {:z} │ CET | -│ now │ {:Z} │ CET | +│ now │ {} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:a} │ PM │ +│ now │ {:b} │ 163 │ +│ now │ {:B} │ 163 │ +│ now │ {:d} │ 12/15/2024 │ +│ now │ {:D} │ 12/15/2024 │ +│ now │ {:f} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:F} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:g} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:G} │ Sun Dec 15 13:41:38 2024 │ +│ now │ {:h} │ Sun │ +│ now │ {:H} │ Sunday │ +│ now │ {:i} │ 15 │ +│ now │ {:I} │ 15 │ +│ now │ {:j} │ Dec │ +│ now │ {:J} │ December │ +│ now │ {:k} │ 12 │ +│ now │ {:K} │ 12 │ +│ now │ {:l} │ 24 │ +│ now │ {:L} │ 2024 │ +│ now │ {:m} │ December 15 │ +│ now │ {:M} │ December 15 │ +│ now │ {:n} │ Sunday, 15 December 2024 │ +│ now │ {:n} │ Sunday, 15 December 2024 13:41:38 │ +│ now │ {:o} │ 15 December 2024 │ +│ now │ {:O} │ 15 December 2024 │ +│ now │ {:s} │ 2024-12-15T13:41:38.163216000 │ +│ now │ {:t} │ 13:41:38 │ +│ now │ {:T} │ 13:41:38 │ +│ now │ {:u} │ 2024-12-15 13:41:38 │ +│ now │ {:U} │ Sunday, 15 December 2024 13:41:38 │ +│ now │ {:v} │ 13:41 │ +│ now │ {:V} │ 13:41 │ +│ now │ {:w} │ 13} │ +│ now │ {:W} │ 13 │ +│ now │ {:x} │ 01 │ +│ now │ {:X} │ 1 │ +│ now │ {:y} │ December 24 │ +│ now │ {:Y} │ December 2024 │ +│ now │ {:z} │ CET │ +│ now │ {:Z} │ CET │ └──────────────────────────────────┴────────────┴──────────────────────────────────────────┘ ``` diff --git a/examples/xtd.core.examples/format/format_tm/src/format_tm.cpp b/examples/xtd.core.examples/format/format_tm/src/format_tm.cpp index 6a86823b3640..60a5bf67d94e 100644 --- a/examples/xtd.core.examples/format/format_tm/src/format_tm.cpp +++ b/examples/xtd.core.examples/format/format_tm/src/format_tm.cpp @@ -33,47 +33,47 @@ auto print_tm(const string& text, const std::tm& value, cap c) { << "│ tm │ format │ representation │" << environment::new_line << "├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {} │ " << string::format("{}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:a} │ " << string::format("{:a}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:b} │ " << string::format("{:b}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:B} │ " << string::format("{:B}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:d} │ " << string::format("{:d}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:D} │ " << string::format("{:D}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:f} │ " << string::format("{:f}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:F} │ " << string::format("{:F}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:g} │ " << string::format("{:g}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:G} │ " << string::format("{:G}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:h} │ " << string::format("{:h}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:H} │ " << string::format("{:H}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:i} │ " << string::format("{:i}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:I} │ " << string::format("{:I}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:j} │ " << string::format("{:j}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:J} │ " << string::format("{:J}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:k} │ " << string::format("{:k}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:K} │ " << string::format("{:K}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:l} │ " << string::format("{:l}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:L} │ " << string::format("{:L}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:m} │ " << string::format("{:m}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:M} │ " << string::format("{:M}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:n} │ " << string::format("{:n}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:n} │ " << string::format("{:N}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:o} │ " << string::format("{:o}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:O} │ " << string::format("{:O}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:s} │ " << string::format("{:s}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:t} │ " << string::format("{:t}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:T} │ " << string::format("{:T}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:u} │ " << string::format("{:u}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:U} │ " << string::format("{:U}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:v} │ " << string::format("{:v}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:V} │ " << string::format("{:V}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:w} │ " << string::format("{:w}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:W} │ " << string::format("{:W}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:x} │ " << string::format("{:x}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:X} │ " << string::format("{:X}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:y} │ " << string::format("{:y}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:Y} │ " << string::format("{:Y}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:z} │ " << string::format("{:z}", value).pad_right(40) << " |" << environment::new_line; - console::out << "│ " << text.pad_right(32) << " │ {:Z} │ " << string::format("{:Z}", value).pad_right(40) << " |" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {} │ " << string::format("{}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:a} │ " << string::format("{:a}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:b} │ " << string::format("{:b}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:B} │ " << string::format("{:B}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:d} │ " << string::format("{:d}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:D} │ " << string::format("{:D}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:f} │ " << string::format("{:f}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:F} │ " << string::format("{:F}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:g} │ " << string::format("{:g}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:G} │ " << string::format("{:G}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:h} │ " << string::format("{:h}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:H} │ " << string::format("{:H}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:i} │ " << string::format("{:i}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:I} │ " << string::format("{:I}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:j} │ " << string::format("{:j}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:J} │ " << string::format("{:J}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:k} │ " << string::format("{:k}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:K} │ " << string::format("{:K}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:l} │ " << string::format("{:l}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:L} │ " << string::format("{:L}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:m} │ " << string::format("{:m}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:M} │ " << string::format("{:M}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:n} │ " << string::format("{:n}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:n} │ " << string::format("{:N}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:o} │ " << string::format("{:o}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:O} │ " << string::format("{:O}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:s} │ " << string::format("{:s}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:t} │ " << string::format("{:t}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:T} │ " << string::format("{:T}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:u} │ " << string::format("{:u}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:U} │ " << string::format("{:U}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:v} │ " << string::format("{:v}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:V} │ " << string::format("{:V}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:w} │ " << string::format("{:w}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:W} │ " << string::format("{:W}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:x} │ " << string::format("{:x}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:X} │ " << string::format("{:X}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:y} │ " << string::format("{:y}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:Y} │ " << string::format("{:Y}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:z} │ " << string::format("{:z}", value).pad_right(40) << " │" << environment::new_line; + console::out << "│ " << text.pad_right(32) << " │ {:Z} │ " << string::format("{:Z}", value).pad_right(40) << " │" << environment::new_line; if (c != cap::end) console::out << "├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤" << environment::new_line; @@ -95,171 +95,171 @@ auto main() -> int { // ┌──────────────────────────────────┬────────────┬──────────────────────────────────────────┐ // │ date_time │ format │ representation │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ 0 │ {} │ Sun Jan 0 00:00:00 1900 | -// │ 0 │ {:a} │ AM | -// │ 0 │ {:b} │ 000 | -// │ 0 │ {:B} │ 0 | -// │ 0 │ {:d} │ 01/00/1900 | -// │ 0 │ {:D} │ 1/00/1900 | -// │ 0 │ {:f} │ Sun Jan 0 00:00:00 1900 | -// │ 0 │ {:F} │ Sun Jan 0 00:00:00 1900 | -// │ 0 │ {:g} │ Sun Jan 0 00:00:00 1900 | -// │ 0 │ {:G} │ Sun Jan 0 00:00:00 1900 | -// │ 0 │ {:h} │ Sun | -// │ 0 │ {:H} │ Sunday | -// │ 0 │ {:i} │ 00 | -// │ 0 │ {:I} │ 0 | -// │ 0 │ {:j} │ Jan | -// │ 0 │ {:J} │ January | -// │ 0 │ {:k} │ 01 | -// │ 0 │ {:K} │ 1 | -// │ 0 │ {:l} │ 00 | -// │ 0 │ {:L} │ 1900 | -// │ 0 │ {:m} │ January 0 | -// │ 0 │ {:M} │ January 0 | -// │ 0 │ {:n} │ Sunday, 0 January 1900 | -// │ 0 │ {:n} │ Sunday, 0 January 1900 0:00:00 | -// │ 0 │ {:o} │ 0 January 1900 | -// │ 0 │ {:O} │ 0 January 1900 | -// │ 0 │ {:s} │ 1900-01-00T00:00:00.0000000 | -// │ 0 │ {:t} │ 00:00:00 | -// │ 0 │ {:T} │ 0:00:00 | -// │ 0 │ {:u} │ 1900-01-00 00:00:00 | -// │ 0 │ {:U} │ Sunday, 0 January 1900 0:00:00 | -// │ 0 │ {:v} │ 00:00 | -// │ 0 │ {:V} │ 0:00 | -// │ 0 │ {:w} │ 00} | -// │ 0 │ {:W} │ 0 | -// │ 0 │ {:x} │ 00 | -// │ 0 │ {:X} │ 0 | -// │ 0 │ {:y} │ January 0 | -// │ 0 │ {:Y} │ January 1900 | -// │ 0 │ {:z} │ CET | -// │ 0 │ {:Z} │ CET | +// │ 0 │ {} │ Sun Jan 0 00:00:00 1900 │ +// │ 0 │ {:a} │ AM │ +// │ 0 │ {:b} │ 000 │ +// │ 0 │ {:B} │ 0 │ +// │ 0 │ {:d} │ 01/00/1900 │ +// │ 0 │ {:D} │ 1/00/1900 │ +// │ 0 │ {:f} │ Sun Jan 0 00:00:00 1900 │ +// │ 0 │ {:F} │ Sun Jan 0 00:00:00 1900 │ +// │ 0 │ {:g} │ Sun Jan 0 00:00:00 1900 │ +// │ 0 │ {:G} │ Sun Jan 0 00:00:00 1900 │ +// │ 0 │ {:h} │ Sun │ +// │ 0 │ {:H} │ Sunday │ +// │ 0 │ {:i} │ 00 │ +// │ 0 │ {:I} │ 0 │ +// │ 0 │ {:j} │ Jan │ +// │ 0 │ {:J} │ January │ +// │ 0 │ {:k} │ 01 │ +// │ 0 │ {:K} │ 1 │ +// │ 0 │ {:l} │ 00 │ +// │ 0 │ {:L} │ 1900 │ +// │ 0 │ {:m} │ January 0 │ +// │ 0 │ {:M} │ January 0 │ +// │ 0 │ {:n} │ Sunday, 0 January 1900 │ +// │ 0 │ {:n} │ Sunday, 0 January 1900 0:00:00 │ +// │ 0 │ {:o} │ 0 January 1900 │ +// │ 0 │ {:O} │ 0 January 1900 │ +// │ 0 │ {:s} │ 1900-01-00T00:00:00.0000000 │ +// │ 0 │ {:t} │ 00:00:00 │ +// │ 0 │ {:T} │ 0:00:00 │ +// │ 0 │ {:u} │ 1900-01-00 00:00:00 │ +// │ 0 │ {:U} │ Sunday, 0 January 1900 0:00:00 │ +// │ 0 │ {:v} │ 00:00 │ +// │ 0 │ {:V} │ 0:00 │ +// │ 0 │ {:w} │ 00} │ +// │ 0 │ {:W} │ 0 │ +// │ 0 │ {:x} │ 00 │ +// │ 0 │ {:X} │ 0 │ +// │ 0 │ {:y} │ January 0 │ +// │ 0 │ {:Y} │ January 1900 │ +// │ 0 │ {:z} │ CET │ +// │ 0 │ {:Z} │ CET │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:a} │ AM | -// │ make_time(1971, 1, 5) │ {:b} │ 000 | -// │ make_time(1971, 1, 5) │ {:B} │ 0 | -// │ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 | -// │ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 | -// │ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 | -// │ make_time(1971, 1, 5) │ {:h} │ Tue | -// │ make_time(1971, 1, 5) │ {:H} │ Tuesday | -// │ make_time(1971, 1, 5) │ {:i} │ 05 | -// │ make_time(1971, 1, 5) │ {:I} │ 5 | -// │ make_time(1971, 1, 5) │ {:j} │ Jan | -// │ make_time(1971, 1, 5) │ {:J} │ January | -// │ make_time(1971, 1, 5) │ {:k} │ 01 | -// │ make_time(1971, 1, 5) │ {:K} │ 1 | -// │ make_time(1971, 1, 5) │ {:l} │ 71 | -// │ make_time(1971, 1, 5) │ {:L} │ 1971 | -// │ make_time(1971, 1, 5) │ {:m} │ January 5 | -// │ make_time(1971, 1, 5) │ {:M} │ January 5 | -// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 | -// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 | -// │ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 | -// │ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 | -// │ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 | -// │ make_time(1971, 1, 5) │ {:t} │ 00:00:00 | -// │ make_time(1971, 1, 5) │ {:T} │ 0:00:00 | -// │ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 | -// │ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 | -// │ make_time(1971, 1, 5) │ {:v} │ 00:00 | -// │ make_time(1971, 1, 5) │ {:V} │ 0:00 | -// │ make_time(1971, 1, 5) │ {:w} │ 00} | -// │ make_time(1971, 1, 5) │ {:W} │ 0 | -// │ make_time(1971, 1, 5) │ {:x} │ 00 | -// │ make_time(1971, 1, 5) │ {:X} │ 0 | -// │ make_time(1971, 1, 5) │ {:y} │ January 71 | -// │ make_time(1971, 1, 5) │ {:Y} │ January 1971 | -// │ make_time(1971, 1, 5) │ {:z} │ CET | -// │ make_time(1971, 1, 5) │ {:Z} │ CET | +// │ make_time(1971, 1, 5) │ {} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:a} │ AM │ +// │ make_time(1971, 1, 5) │ {:b} │ 000 │ +// │ make_time(1971, 1, 5) │ {:B} │ 0 │ +// │ make_time(1971, 1, 5) │ {:d} │ 01/05/1971 │ +// │ make_time(1971, 1, 5) │ {:D} │ 1/05/1971 │ +// │ make_time(1971, 1, 5) │ {:f} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:F} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:g} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:G} │ Tue Jan 5 00:00:00 1971 │ +// │ make_time(1971, 1, 5) │ {:h} │ Tue │ +// │ make_time(1971, 1, 5) │ {:H} │ Tuesday │ +// │ make_time(1971, 1, 5) │ {:i} │ 05 │ +// │ make_time(1971, 1, 5) │ {:I} │ 5 │ +// │ make_time(1971, 1, 5) │ {:j} │ Jan │ +// │ make_time(1971, 1, 5) │ {:J} │ January │ +// │ make_time(1971, 1, 5) │ {:k} │ 01 │ +// │ make_time(1971, 1, 5) │ {:K} │ 1 │ +// │ make_time(1971, 1, 5) │ {:l} │ 71 │ +// │ make_time(1971, 1, 5) │ {:L} │ 1971 │ +// │ make_time(1971, 1, 5) │ {:m} │ January 5 │ +// │ make_time(1971, 1, 5) │ {:M} │ January 5 │ +// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 │ +// │ make_time(1971, 1, 5) │ {:n} │ Tuesday, 5 January 1971 0:00:00 │ +// │ make_time(1971, 1, 5) │ {:o} │ 5 January 1971 │ +// │ make_time(1971, 1, 5) │ {:O} │ 5 January 1971 │ +// │ make_time(1971, 1, 5) │ {:s} │ 1971-01-05T00:00:00.0000000 │ +// │ make_time(1971, 1, 5) │ {:t} │ 00:00:00 │ +// │ make_time(1971, 1, 5) │ {:T} │ 0:00:00 │ +// │ make_time(1971, 1, 5) │ {:u} │ 1971-01-05 00:00:00 │ +// │ make_time(1971, 1, 5) │ {:U} │ Tuesday, 5 January 1971 0:00:00 │ +// │ make_time(1971, 1, 5) │ {:v} │ 00:00 │ +// │ make_time(1971, 1, 5) │ {:V} │ 0:00 │ +// │ make_time(1971, 1, 5) │ {:w} │ 00} │ +// │ make_time(1971, 1, 5) │ {:W} │ 0 │ +// │ make_time(1971, 1, 5) │ {:x} │ 00 │ +// │ make_time(1971, 1, 5) │ {:X} │ 0 │ +// │ make_time(1971, 1, 5) │ {:y} │ January 71 │ +// │ make_time(1971, 1, 5) │ {:Y} │ January 1971 │ +// │ make_time(1971, 1, 5) │ {:z} │ CET │ +// │ make_time(1971, 1, 5) │ {:Z} │ CET │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET | -// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET | +// │ make_time(1971, 1, 5, 21, 30, 3) │ {} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:a} │ PM │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:b} │ 000 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:B} │ 0 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:d} │ 01/05/1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:D} │ 1/05/1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:f} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:F} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:g} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:G} │ Tue Jan 5 21:30:03 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:h} │ Tue │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:H} │ Tuesday │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:i} │ 05 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:I} │ 5 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:j} │ Jan │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:J} │ January │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:k} │ 01 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:K} │ 1 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:l} │ 71 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:L} │ 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:m} │ January 5 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:M} │ January 5 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:n} │ Tuesday, 5 January 1971 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:o} │ 5 January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:O} │ 5 January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:s} │ 1971-01-05T21:30:03.0000000 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:t} │ 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:T} │ 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:u} │ 1971-01-05 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:U} │ Tuesday, 5 January 1971 21:30:03 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:v} │ 21:30 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:V} │ 21:30 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:w} │ 21} │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:W} │ 21 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:x} │ 09 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:X} │ 9 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:y} │ January 71 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Y} │ January 1971 │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:z} │ CET │ +// │ make_time(1971, 1, 5, 21, 30, 3) │ {:Z} │ CET │ // ├──────────────────────────────────┼────────────┼──────────────────────────────────────────┤ -// │ now │ {} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:a} │ PM | -// │ now │ {:b} │ 163 | -// │ now │ {:B} │ 163 | -// │ now │ {:d} │ 12/15/2024 | -// │ now │ {:D} │ 12/15/2024 | -// │ now │ {:f} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:F} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:g} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:G} │ Sun Dec 15 13:41:38 2024 | -// │ now │ {:h} │ Sun | -// │ now │ {:H} │ Sunday | -// │ now │ {:i} │ 15 | -// │ now │ {:I} │ 15 | -// │ now │ {:j} │ Dec | -// │ now │ {:J} │ December | -// │ now │ {:k} │ 12 | -// │ now │ {:K} │ 12 | -// │ now │ {:l} │ 24 | -// │ now │ {:L} │ 2024 | -// │ now │ {:m} │ December 15 | -// │ now │ {:M} │ December 15 | -// │ now │ {:n} │ Sunday, 15 December 2024 | -// │ now │ {:n} │ Sunday, 15 December 2024 13:41:38 | -// │ now │ {:o} │ 15 December 2024 | -// │ now │ {:O} │ 15 December 2024 | -// │ now │ {:s} │ 2024-12-15T13:41:38.163216000 | -// │ now │ {:t} │ 13:41:38 | -// │ now │ {:T} │ 13:41:38 | -// │ now │ {:u} │ 2024-12-15 13:41:38 | -// │ now │ {:U} │ Sunday, 15 December 2024 13:41:38 | -// │ now │ {:v} │ 13:41 | -// │ now │ {:V} │ 13:41 | -// │ now │ {:w} │ 13} | -// │ now │ {:W} │ 13 | -// │ now │ {:x} │ 01 | -// │ now │ {:X} │ 1 | -// │ now │ {:y} │ December 24 | -// │ now │ {:Y} │ December 2024 | -// │ now │ {:z} │ CET | -// │ now │ {:Z} │ CET | +// │ now │ {} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:a} │ PM │ +// │ now │ {:b} │ 163 │ +// │ now │ {:B} │ 163 │ +// │ now │ {:d} │ 12/15/2024 │ +// │ now │ {:D} │ 12/15/2024 │ +// │ now │ {:f} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:F} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:g} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:G} │ Sun Dec 15 13:41:38 2024 │ +// │ now │ {:h} │ Sun │ +// │ now │ {:H} │ Sunday │ +// │ now │ {:i} │ 15 │ +// │ now │ {:I} │ 15 │ +// │ now │ {:j} │ Dec │ +// │ now │ {:J} │ December │ +// │ now │ {:k} │ 12 │ +// │ now │ {:K} │ 12 │ +// │ now │ {:l} │ 24 │ +// │ now │ {:L} │ 2024 │ +// │ now │ {:m} │ December 15 │ +// │ now │ {:M} │ December 15 │ +// │ now │ {:n} │ Sunday, 15 December 2024 │ +// │ now │ {:n} │ Sunday, 15 December 2024 13:41:38 │ +// │ now │ {:o} │ 15 December 2024 │ +// │ now │ {:O} │ 15 December 2024 │ +// │ now │ {:s} │ 2024-12-15T13:41:38.163216000 │ +// │ now │ {:t} │ 13:41:38 │ +// │ now │ {:T} │ 13:41:38 │ +// │ now │ {:u} │ 2024-12-15 13:41:38 │ +// │ now │ {:U} │ Sunday, 15 December 2024 13:41:38 │ +// │ now │ {:v} │ 13:41 │ +// │ now │ {:V} │ 13:41 │ +// │ now │ {:w} │ 13} │ +// │ now │ {:W} │ 13 │ +// │ now │ {:x} │ 01 │ +// │ now │ {:X} │ 1 │ +// │ now │ {:y} │ December 24 │ +// │ now │ {:Y} │ December 2024 │ +// │ now │ {:z} │ CET │ +// │ now │ {:Z} │ CET │ // └──────────────────────────────────┴────────────┴──────────────────────────────────────────┘