diff --git a/AUTHORS b/AUTHORS index dec886fdb..d79ffd0af 100644 --- a/AUTHORS +++ b/AUTHORS @@ -292,3 +292,4 @@ suggestions: Yaroslav Molochko Michael Meier Slaven ʙanovic + Ellington Santos diff --git a/ChangeLog b/ChangeLog index 21a9a0934..33e42580a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,8 @@ (thanks to Renato Alves). - TW-1806 project:ide is not allowed (thanks to Slaven ʙanovic). +- TW-1807 dateformat lacks a flag to display day of week + (thanks to Ellington Santos). - Added 'juhannus' as a synonym for 'midsommarafton' (thanks to Lynoure Braakman). - Deprecated the 'DUETODAY' virtual tag, which is a synonym for the 'TODAY' diff --git a/doc/man/taskrc.5.in b/doc/man/taskrc.5.in index 83294dd83..837e94858 100644 --- a/doc/man/taskrc.5.in +++ b/doc/man/taskrc.5.in @@ -583,6 +583,8 @@ S two-digit seconds, for example 07 or 47 J three-digit Julian day, for example 023 or 365 .br j Julian day, for example 23 or 365 +.br +w Week day, for example 0 for Monday, 5 for Friday .RE .RE diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index bf3282627..2edf511af 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -1122,6 +1122,7 @@ const std::string ISO8601d::toString ( case 'S': formatted << std::setw (2) << std::setfill ('0') << this->second (); break; case 'j': formatted << this->dayOfYear (); break; case 'J': formatted << std::setw (3) << std::setfill ('0') << this->dayOfYear (); break; + case 'w': formatted << this->dayOfWeek (); break; default: formatted << static_cast (c); break; } }