Ehhh... Y2k was a long time ago.
Just use 4 characters, it's fine. :-)
This commit is contained in:
@@ -36,7 +36,7 @@ getEntries( const std::filesystem::path where )
|
||||
namespace C
|
||||
{
|
||||
constexpr int sizeWidth= 14;
|
||||
constexpr int dateWidth= "82-12-21"s.size();
|
||||
constexpr int dateWidth= "1982-12-21"s.size();
|
||||
constexpr int timeWidth= "12:34"s.size();
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ main()
|
||||
|
||||
// Date
|
||||
std::cout << "\e[1;31;91m";
|
||||
std::cout << std::setw( 2 ) << std::setfill( '0' ) << entry.year % 100 << '-';
|
||||
std::cout << std::setw( 2 ) << std::setfill( '0' ) << entry.year % 10000 << '-';
|
||||
std::cout << std::setw( 2 ) << std::setfill( '0' ) << entry.month << '-';
|
||||
std::cout << std::setw( 2 ) << std::setfill( '0' ) << entry.day;
|
||||
std::cout << "\e[m";
|
||||
|
||||
Reference in New Issue
Block a user